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

core/recovery: fix Info button when the threshold was reached (#566)

This commit is contained in:
Tomas Susanka 2019-09-24 16:10:09 +02:00
parent aaf22d03e9
commit 6c6bd44ee8

View File

@ -227,7 +227,7 @@ async def _show_remaining_groups_and_shares(ctx: wire.Context) -> None:
share = None share = None
for i, r in enumerate(shares_remaining): for i, r in enumerate(shares_remaining):
if 0 < r < slip39.MAX_SHARE_COUNT: if 0 <= r < slip39.MAX_SHARE_COUNT:
m = storage.recovery_shares.fetch_group(i)[0] m = storage.recovery_shares.fetch_group(i)[0]
if not share: if not share:
share = slip39.decode_mnemonic(m) share = slip39.decode_mnemonic(m)