1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +00:00

Merge pull request #563 from trezor/tsusanka/562-fix-info-btn

core/recovery: fix Info dialog
This commit is contained in:
Tomas Susanka 2019-09-24 13:20:14 +02:00 committed by GitHub
commit 7f959250e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -215,10 +215,10 @@ async def _show_remaining_groups_and_shares(ctx: wire.Context) -> None:
share = None
for i, r in enumerate(shares_remaining):
if 0 < r < slip39.MAX_SHARE_COUNT:
m = storage.recovery_shares.fetch_group(i)[0]
if not share:
m = storage.recovery_shares.fetch_group(i)[0]
share = slip39.decode_mnemonic(m)
identifier = mnemonic.split(" ")[0:3]
identifier = m.split(" ")[0:3]
identifiers.append([r, identifier])
elif r == slip39.MAX_SHARE_COUNT:
identifier = storage.recovery_shares.fetch_group(first_entered_index)[