Update WidgetCommunication.ios.tsx

This commit is contained in:
Marcos Rodriguez Vélez 2024-05-21 14:48:23 -04:00 committed by GitHub
parent 85aeed9006
commit 8e95ea947b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,6 +18,7 @@ export const isBalanceDisplayAllowed = async (): Promise<boolean> => {
const displayBalance = await DefaultPreference.get(WidgetCommunicationKeys.DisplayBalanceAllowed);
return displayBalance === '1';
} catch {
await setBalanceDisplayAllowed(true);
return true;
}
};