From 22775e31f67b65a774784f9896664d31d2b0801f Mon Sep 17 00:00:00 2001 From: Tanvir Rahman Date: Sat, 28 Dec 2024 10:01:54 +0600 Subject: [PATCH] Update RemoveData (#33) --- lib/utils/services/hive/main_box.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/services/hive/main_box.dart b/lib/utils/services/hive/main_box.dart index 55ba9a4..bfa10bc 100644 --- a/lib/utils/services/hive/main_box.dart +++ b/lib/utils/services/hive/main_box.dart @@ -43,7 +43,7 @@ mixin class MainBoxMixin { Future logoutBox() async { /// Clear the box - removeData(MainBoxKeys.isLogin); - removeData(MainBoxKeys.authToken); + await removeData(MainBoxKeys.isLogin); + await removeData(MainBoxKeys.authToken); } }