Skip to content

Commit

Permalink
fix crash when try to back up 12-word seed wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeBoy committed Apr 3, 2024
1 parent 3637ab3 commit 7a15fe6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 0 additions & 4 deletions ui/page/components/wallet_setup_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,6 @@ func NewCreateWallet(l *load.Load, walletCreationSuccessCallback func(), assetTy
return pg
}

// func (pg *CreateWallet) getWordSeedType() sharedW.WordSeedType {
// return GetWordSeedType(pg.seedTypeDropdown.Selected())
// }

// OnNavigatedTo is called when the page is about to be displayed and
// may be used to initialize page features that are only relevant when
// the page is displayed.
Expand Down
6 changes: 5 additions & 1 deletion ui/page/seedbackup/save_seed.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,11 @@ func (pg *SaveSeedPage) hexLayout(gtx C) D {
hexString, _ := components.SeedWordsToHex(pg.seed, pg.wordSeedType)
pg.hexLabel.Text = hexString
case seedWordFormat:
pg.hexLabel.Text = pg.seed[:117] + "..."
if len(pg.seed) >= 117 {
pg.hexLabel.Text = pg.seed[:117] + "..."
} else {
pg.hexLabel.Text = pg.seed
}
}
}
return pg.hexLabel.Layout(gtx)
Expand Down

0 comments on commit 7a15fe6

Please sign in to comment.