diff --git a/mih_ui/lib/mih_hive/about_mih_hive_data.dart b/mih_ui/lib/mih_hive/about_mih_hive_data.dart index f8b89357..d1410266 100644 --- a/mih_ui/lib/mih_hive/about_mih_hive_data.dart +++ b/mih_ui/lib/mih_hive/about_mih_hive_data.dart @@ -29,10 +29,10 @@ class AboutMihHiveData { Future syncAboutMihDataWithServer() async { try { int remoteUserCount = await MihUserServices().fetchUserCount(); - cacheUserCount(remoteUserCount); + await cacheUserCount(remoteUserCount); int remoteBusinessCount = await MihBusinessDetailsServices().fetchBusinessCount(); - cacheBusinessCount(remoteBusinessCount); + await cacheBusinessCount(remoteBusinessCount); return true; } catch (error) { KenLogger.warning("MIH App Operating in Offline Mode. Sync Paused"); diff --git a/mih_ui/lib/mih_hive/mzansi_profile_hive_data.dart b/mih_ui/lib/mih_hive/mzansi_profile_hive_data.dart index 69451223..39416e9e 100644 --- a/mih_ui/lib/mih_hive/mzansi_profile_hive_data.dart +++ b/mih_ui/lib/mih_hive/mzansi_profile_hive_data.dart @@ -111,12 +111,12 @@ class MzansiProfileHiveData { UserConsent? remoteConsent = await MihUserConsentServices().getUserConsentStatusV2(); if (remoteConsent != null) { - cacheUserConsentData(remoteConsent); + await cacheUserConsentData(remoteConsent); } final remotePersonalLinks = await MihProfileLinksServices.getUserProfileLinksV2( remoteUser.app_id); - cachePersonalProfileLinksData(remotePersonalLinks); + await cachePersonalProfileLinksData(remotePersonalLinks); } Business? remoteBusiness = await MihBusinessDetailsServices().getBusinessDetailsByUserV2(); @@ -126,16 +126,16 @@ class MzansiProfileHiveData { BusinessUser? remoteBizUser = await MihMyBusinessUserServices().getBusinessUserV2(); if (remoteBizUser != null) { - cacheBusinessUserData(remoteBizUser); + await cacheBusinessUserData(remoteBizUser); } final remoteBusinessEmployeeList = await MihBusinessEmployeeServices() .fetchEmployeesV2(remoteBusiness.business_id); - cacheBusinessEmployeesData(remoteBusinessEmployeeList); + await cacheBusinessEmployeesData(remoteBusinessEmployeeList); final remoteBusinessLinks = await MihProfileLinksServices.getBusinessProfileLinksV2( remoteBusiness.business_id); - cacheBusinessProfileLinksData(remoteBusinessLinks); + await cacheBusinessProfileLinksData(remoteBusinessLinks); } return true; } catch (error) { diff --git a/mih_ui/lib/mih_hive/mzansi_wallet_hive_data.dart b/mih_ui/lib/mih_hive/mzansi_wallet_hive_data.dart index d5bb5dfe..d7e767b8 100644 --- a/mih_ui/lib/mih_hive/mzansi_wallet_hive_data.dart +++ b/mih_ui/lib/mih_hive/mzansi_wallet_hive_data.dart @@ -153,11 +153,11 @@ class MzansiWalletHiveData { try { final remoteLoyaltyCards = await MIHMzansiWalletApis.getLoyaltyCardsV2( profileProvider.user!.app_id); - cacheLoyaltyCardsData(remoteLoyaltyCards); + await cacheLoyaltyCardsData(remoteLoyaltyCards); final remoteFavLoyaltyCards = await MIHMzansiWalletApis.getFavouriteLoyaltyCardsV2( profileProvider.user!.app_id); - cacheFavLoyaltyCardsData(remoteFavLoyaltyCards); + await cacheFavLoyaltyCardsData(remoteFavLoyaltyCards); return true; } catch (error) { KenLogger.warning("MIH App Operating in Offline Mode. Sync Paused."); diff --git a/mih_ui/lib/mih_packages/about_mih/components/call_to_action_buttons.dart b/mih_ui/lib/mih_packages/about_mih/components/call_to_action_buttons.dart index 326453ca..a5c187d3 100644 --- a/mih_ui/lib/mih_packages/about_mih/components/call_to_action_buttons.dart +++ b/mih_ui/lib/mih_packages/about_mih/components/call_to_action_buttons.dart @@ -189,7 +189,7 @@ class _CallToActionButtonsState extends State { ), const SizedBox(width: 10), Text( - "MIH Beginners Guide", + "Beginners Guide", style: TextStyle( color: MihColors.primary(), fontSize: 20,