Skip to content

Commit d7ecc29

Browse files
committed
Fix minor
1 parent 4828f32 commit d7ecc29

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

kitchenowl/lib/cubits/household_add_update/household_update_cubit.dart

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,17 @@ class HouseholdUpdateCubit
3232
ApiService.getInstance().onShoppinglistDelete(onShoppinglistDelete);
3333
}
3434

35+
@override
36+
Future<void> close() {
37+
ApiService.getInstance().offShoppinglistAdd(onShoppinglistAdd);
38+
ApiService.getInstance().offShoppinglistDelete(onShoppinglistDelete);
39+
return super.close();
40+
}
41+
3542
void onShoppinglistAdd(dynamic data) {
3643
refresh();
3744
}
38-
45+
3946
void onShoppinglistDelete(dynamic data) {
4047
refresh();
4148
}

0 commit comments

Comments
 (0)