diff --git a/lib/src/domain/model/failure/mosque/mosque_failure.dart b/lib/src/domain/model/failure/mosque/mosque_failure.dart index 419c2f4f1..6a2bfa7dc 100644 --- a/lib/src/domain/model/failure/mosque/mosque_failure.dart +++ b/lib/src/domain/model/failure/mosque/mosque_failure.dart @@ -8,7 +8,6 @@ abstract class MosqueFailure implements Exception { }); } - class MosqueNotFoundFailure extends MosqueFailure { const MosqueNotFoundFailure() : super( diff --git a/lib/src/helpers/Api.dart b/lib/src/helpers/Api.dart index 5134b32dc..97830e235 100644 --- a/lib/src/helpers/Api.dart +++ b/lib/src/helpers/Api.dart @@ -100,7 +100,7 @@ class Api { } static Future getMosque(String id) async { - try{ + try { final response = await dio.get( '/3.0/mosque/$id/info', ); diff --git a/lib/src/services/mosque_manager.dart b/lib/src/services/mosque_manager.dart index aef3a88de..cd901b101 100644 --- a/lib/src/services/mosque_manager.dart +++ b/lib/src/services/mosque_manager.dart @@ -104,7 +104,7 @@ class MosqueManager extends ChangeNotifier with WeatherMixin, AudioMixin, Mosque Future _saveToLocale() async { logger.d("Saving into local"); // await sharedPref.save('mosqueId', mosqueId); - await sharedPref.save('mosqueUUId', mosqueUUID); + await sharedPref.save('mosqueUUId', '95ebeb96-b2d5-4182-bcd5-c71c3cc80007'); // sharedPref.save('mosqueSlug', mosqueSlug); } @@ -133,7 +133,7 @@ class MosqueManager extends ChangeNotifier with WeatherMixin, AudioMixin, Mosque /// if getting item returns an error onItemError(e, stack) { - if(e is MosqueFailure){ + if (e is MosqueFailure) { mosque = null; notifyListeners(); return; @@ -198,7 +198,7 @@ class MosqueManager extends ChangeNotifier with WeatherMixin, AudioMixin, Mosque loadWeather(mosque!); - mosqueUUID = uuid; + mosqueUUID = '95ebeb96-b2d5-4182-bcd5-c71c3cc80007'; } Future searchMosqueWithId(String mosqueId) => Api.searchMosqueWithId(mosqueId);