From 4c9a48cefdad9e6d7c44ff853be1e9876330de9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gon=C3=A7alves?= Date: Fri, 8 Oct 2021 11:23:06 -0400 Subject: [PATCH] fix null account in card --- .../slices/decision_card_spam/decision_card_spam_service.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/slices/decision_card_spam/decision_card_spam_service.dart b/lib/src/slices/decision_card_spam/decision_card_spam_service.dart index 7f046fba..3c6d46d3 100644 --- a/lib/src/slices/decision_card_spam/decision_card_spam_service.dart +++ b/lib/src/slices/decision_card_spam/decision_card_spam_service.dart @@ -52,7 +52,7 @@ class DecisionCardSpamService extends ChangeNotifier { Future?> getCards() async { List senders = await _apiEmailSenderService.getUnsubscribed(); - ApiOAuthModelAccount? account = await _apiAuthService.getAccount(); + _account = await _apiAuthService.getAccount(); List senderIds = List.empty(growable: true); for (ApiEmailSenderModel sender in senders) { if (sender.senderId != null) senderIds.add(sender.senderId!);