diff --git a/lib/services/backend_service.dart b/lib/services/backend_service.dart index 9c66ad17..88c96a50 100644 --- a/lib/services/backend_service.dart +++ b/lib/services/backend_service.dart @@ -425,9 +425,14 @@ class BackendService { value, result.atsign!, atClientPrefernce); break; case AtOnboardingResultStatus.error: + var isConnected = Provider.of( + NavService.navKey.currentContext!, + listen: false) + .isInternetAvailable; + SnackbarService().showSnackbar( NavService.navKey.currentContext!, - (result.message ?? '').isNotEmpty ? '' : 'Onboarding failed.', + isConnected ? "Onboarding failed" : "No internet available", bgColor: ColorConstants.redAlert, ); break;