Skip to content

Instantly share code, notes, and snippets.

@balsikandar
Last active May 1, 2021 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save balsikandar/4651f50fe241a3f903043b4f82d9eaa1 to your computer and use it in GitHub Desktop.
Save balsikandar/4651f50fe241a3f903043b4f82d9eaa1 to your computer and use it in GitHub Desktop.
if (pickupSelected && dropSelected) {
return gotoNextPage();
}
if (selectedTab === "PICKUP_POINT") {
if (pickupSelected) {
goToDrop();
} else {
toast("Please select pickup location")
}
} else 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