Skip to content

Commit

Permalink
Merge pull request #387 from Foundation-Devices/SFT-2754-account-xfp-…
Browse files Browse the repository at this point in the history
…fatal-error

SFT-2754: account xfp fatal error
  • Loading branch information
mjg-foundation authored Sep 14, 2023
2 parents af96721 + 41fb3a5 commit e2fa4d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ports/stm32/boards/Passport/modules/flows/main_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ async def start(self):
common.settings.remove(old_key)
common.settings.set(old_key + ".{}".format(string_xfp), True)

common.settings.save()

# Create initial cards by calling ui.update_cards()
common.ui.update_cards(is_init=True)

Expand Down
2 changes: 1 addition & 1 deletion ports/stm32/boards/Passport/modules/ui/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def update_cards(self,
account = accounts[i]
# print('account[{}]={}'.format(account, i))

if account['xfp'] != xfp and account['acct_num'] != 0:
if account.get('xfp', xfp) != xfp and account['acct_num'] != 0:
continue

account_card = {
Expand Down

0 comments on commit e2fa4d3

Please sign in to comment.