mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-03 03:50:58 +00:00
core/recovery: correctly inform about share already entered inside first group
This commit is contained in:
parent
feefe34328
commit
6594ee9368
@ -115,7 +115,6 @@ async def check_word_validity(
|
|||||||
await show_share_already_added(ctx)
|
await show_share_already_added(ctx)
|
||||||
return False
|
return False
|
||||||
elif backup_type == BackupType.Slip39_Advanced:
|
elif backup_type == BackupType.Slip39_Advanced:
|
||||||
# in case of advanced slip39 recovery we only check 2 words
|
|
||||||
if current_index < 2:
|
if current_index < 2:
|
||||||
share_list = next(s for s in previous_mnemonics if s)[0].split(" ")
|
share_list = next(s for s in previous_mnemonics if s)[0].split(" ")
|
||||||
if share_list[current_index] != current_word:
|
if share_list[current_index] != current_word:
|
||||||
@ -144,7 +143,7 @@ async def check_word_validity(
|
|||||||
if group_identifier_word == group[0].split(" ")[2]:
|
if group_identifier_word == group[0].split(" ")[2]:
|
||||||
group_index = i
|
group_index = i
|
||||||
|
|
||||||
if group_index:
|
if group_index is not None:
|
||||||
group = previous_mnemonics[group_index]
|
group = previous_mnemonics[group_index]
|
||||||
for share in group:
|
for share in group:
|
||||||
if current_word == share.split(" ")[current_index]:
|
if current_word == share.split(" ")[current_index]:
|
||||||
|
Loading…
Reference in New Issue
Block a user