update for checkin radius

This commit is contained in:
2024-01-14 23:01:09 +05:30
parent 0b5ce75d6c
commit c95cb75934
2 changed files with 4 additions and 4 deletions

View File

@ -161,7 +161,7 @@ class DestinationController extends GetxController {
//make current destination
// print("---- checkin_radious $checkinRadious ----");
// print("---- distance $distance ----");
if (checkinRadious >= distance) {
if (checkinRadious >= distance || checkinRadious == -1) {
//currentSelectedDestinations.add(d);
indexController.currentDestinationFeature.clear();
indexController.currentDestinationFeature.add(d);
@ -247,7 +247,7 @@ class DestinationController extends GetxController {
// print("---- location checkin radious ${d.checkin_radious} ----");
// print("---- already checked in $locationAlreadyCheckedIn ----");
if (checkinRadious >= distance &&
if ((checkinRadious >= distance || checkinRadious == -1) &&
locationAlreadyCheckedIn == false &&
isInRog.value == true) {
if (autoCheckin) {
@ -311,7 +311,7 @@ class DestinationController extends GetxController {
return;
}
}
} else if (checkinRadious >= distance &&
} else if ((checkinRadious >= distance || checkinRadious == -1) &&
locationAlreadyCheckedIn == true &&
buyPointImageAdded == false &&
ds.isNotEmpty &&