Skip to content

Commit

Permalink
SFT-3903: added extra check before clearing a temporary seed
Browse files Browse the repository at this point in the history
  • Loading branch information
mjg-foundation committed Aug 1, 2024
1 parent ddf9782 commit 86ac3db
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ports/stm32/boards/Passport/modules/flows/temporary_seed_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,16 @@ async def enter_seed(self):
async def clear_seed(self):
from utils import spinner_task, start_task
from tasks import delay_task
from pages import SuccessPage
from pages import SuccessPage, QuestionPage

result = await QuestionPage(text='Clear Temporary Seed?').show()

if not result:
# Setting result to false exits temporary mode
self.set_result(True)
return

settings.exit_temporary_mode()
# await spinner_task('Clearing temporary seed', delay_task, args=[1000, False])
await SuccessPage(text='Temporary Seed Cleared').show()
await self.finalize()

Expand Down

0 comments on commit 86ac3db

Please sign in to comment.