Skip to content

Commit

Permalink
fix crash when restore wallet and set 12 word seed is default
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeBoy committed Jun 6, 2024
1 parent e4a314e commit 1b7d04c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/page/components/seed_restore_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ func (pg *SeedRestore) HandleUserInteractions() {
pg.window.ShowModal(infoModal)
pg.resetSeeds()
m.Dismiss()
pg.ParentNavigator().CloseCurrentPage()
pg.window.CloseCurrentPage()
if pg.restoreComplete != nil {
pg.restoreComplete()
}
Expand Down
2 changes: 1 addition & 1 deletion ui/page/components/wallet_setup_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func NewCreateWallet(l *load.Load, walletCreationSuccessCallback func(), assetTy
pg.materialLoader = material.Loader(l.Theme.Base)

defaultWordSeedType := &cryptomaterial.DropDownItem{
Text: values.String(values.Str33WordSeed),
Text: values.String(values.Str12WordSeed),
}

pg.seedTypeDropdown = pg.Theme.DropDown(GetWordSeedTypeDropdownItems(), defaultWordSeedType, values.TxDropdownGroup, false)
Expand Down

0 comments on commit 1b7d04c

Please sign in to comment.