diff --git a/src/Models/Location.php b/src/Models/Location.php index 2bcdc0f..3f919d7 100644 --- a/src/Models/Location.php +++ b/src/Models/Location.php @@ -132,8 +132,7 @@ public static function onboardingIsComplete() return false; } - return isset($model->getAddress()['location_lat']) - && isset($model->getAddress()['location_lng']) + return isset($model->getAddress()['location_lat'], $model->getAddress()['location_lng']) && $model->delivery_areas()->whereIsDefault()->count() > 0; }