Skip to content

Commit

Permalink
SFT-3903: added mention of clearing passphrases with the temporary seed
Browse files Browse the repository at this point in the history
  • Loading branch information
mjg-foundation committed Aug 2, 2024
1 parent 86ac3db commit fe114cf
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,16 @@ async def enter_seed(self):
self.set_result(result)

async def clear_seed(self):
from utils import spinner_task, start_task
from utils import spinner_task, start_task, is_passphrase_active
from tasks import delay_task
from pages import SuccessPage, QuestionPage

result = await QuestionPage(text='Clear Temporary Seed?').show()
if is_passphrase_active():
text = 'Clear temporary seed? The passphrase applied to it will also be removed.'
else:
text = 'Clear Temporary Seed?'

result = await QuestionPage(text=text).show()

if not result:
# Setting result to false exits temporary mode
Expand Down

0 comments on commit fe114cf

Please sign in to comment.