Last active
May 28, 2021 07:59
-
-
Save balsikandar/236eaae8f678db351fb26687df07fd39 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() | |
var msg: String? = "Please select pickup location" | |
if (selectedTab === "PICKUP_POINT" && pickupSelected) { | |
goToDrop() | |
msg = null | |
} | |
msg = msg ?: "Please select drop location" | |
if (selectedTab === "DROP_POINT" && dropSelected) { | |
goToPickup() | |
msg = null | |
} | |
msg.let { toast(it) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment