From f735866be1d337d6d7a59448c2af9788e7aee0ce Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 1 Dec 2020 08:55:49 +0100 Subject: [PATCH] fix: Missing null check --- lib/src/api.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/api.dart b/lib/src/api.dart index 2fc29c2..ade55d6 100644 --- a/lib/src/api.dart +++ b/lib/src/api.dart @@ -70,7 +70,7 @@ class FlutterCallkeep extends EventManager { Future _hasDefaultPhoneAccount(Map options) async { final hasDefault = await _checkDefaultPhoneAccount(); final shouldOpenAccounts = await _alert(options, hasDefault); - if (shouldOpenAccounts) { + if (shouldOpenAccounts == true) { await _openPhoneAccounts(); } }