fixed gps page
This commit is contained in:
@ -521,6 +521,8 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
||||
isAlreadyCheckedIn == true && destination.cp != -1
|
||||
? ElevatedButton(
|
||||
onPressed: () async {
|
||||
await destinationController
|
||||
.removeCheckin(destination.cp!.toInt());
|
||||
destinationController
|
||||
.deleteDestination(destination);
|
||||
Get.back();
|
||||
@ -628,6 +630,9 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
||||
.startRogaining()
|
||||
.then((value) => Get.back());
|
||||
} else {
|
||||
if (destination.cp == -1) {
|
||||
return;
|
||||
}
|
||||
Get.back();
|
||||
await destinationController
|
||||
.callforCheckin(destination);
|
||||
|
||||
Reference in New Issue
Block a user