As @AyaanSiddiqui described in Issue #20 , if the user chooses "3", the function runs infinite times.
The reason was that choice never gets updates by the user, so it always stays at 3, when the user chooses it for the first time.
Now, no matter what the user chooses (except for Q) the user will eventually get the menu presented again.
As @AyaanSiddiqui described in Issue #20 , if the user chooses "3", the function runs infinite times. The reason was that
choice
never gets updates by the user, so it always stays at 3, when the user chooses it for the first time.Now, no matter what the user chooses (except for Q) the user will eventually get the menu presented again.