Created
May 1, 2021 19:20
-
-
Save balsikandar/58da5ae1d56116e36543819a1aba34e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (pickupSelected && dropSelected) return gotoNextPage() | |
if (selectedTab === "PICKUP_POINT") { | |
if (pickupSelected) { | |
goToDrop(); | |
} else { | |
toast("Please select pickup location") | |
} | |
} | |
if (selectedTab === "DROP_POINT") { | |
if (dropSelected) { | |
goToPickup(); | |
} else { | |
toast("Please select drop location") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment