Skip to content

Commit

Permalink
fix: error when back to main menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Thungghuan committed Oct 8, 2022
1 parent 39bfc47 commit 6d113d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ def reserve_bus(self):
reserve_menu = ReserveBusMenu(self.bus)
result = reserve_menu.run()

if result == 0:
if result == 1:
self.change_state(MenuState.START)

else:
self.back_main_menu()

def check_reserve(self):
Expand Down

0 comments on commit 6d113d0

Please sign in to comment.