Skip to content

Instantly share code, notes, and snippets.

@balsikandar
Created May 1, 2021 19:20
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/58da5ae1d56116e36543819a1aba34e9 to your computer and use it in GitHub Desktop.
Save balsikandar/58da5ae1d56116e36543819a1aba34e9 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")
}
}
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