Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG FIX: Display ledger account tag even for accounts with 0 balance #519

Merged
merged 1 commit into from
May 25, 2023

Conversation

CyonAlexRDX
Copy link
Contributor

No description provided.

@@ -107,10 +120,7 @@ extension AccountList {
return
}
guard factorSource.kind == .device else {
// probably ledger account
if factorSource.kind == .ledgerHQHardwareWallet {
await send(.internal(.isLedgerAccount))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function checkIfDeviceFactorSourceControls never gets called if balance is 0, see line 100 where we return before calling checkIfDeviceFactorSourceControls.

The fix is simple, perform the check part of task.

@CyonAlexRDX CyonAlexRDX merged commit bba8f02 into main May 25, 2023
@CyonAlexRDX CyonAlexRDX deleted the fix_ledger_check_even_for_acc_with_zero_balance branch May 25, 2023 07:38
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants