Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeBoy committed Apr 26, 2024
1 parent 3ec91e8 commit 75503b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/page/seedbackup/verify_seed.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ func (pg *VerifySeedPage) OnNavigatedTo() {
for _, word := range seedWords {
listGroupSeed = append(listGroupSeed, &layout.List{Axis: layout.Horizontal})
index := seedPosition(word, allSeeds)
shuffledSeed := pg.getMultiSeed(index, pg.wordSeedType.AllSeeds()) // using allSeeds here modifies the slice
//use pg.wordSeedType.AllSeeds() instead of allSeeds because getMultiSeed() will change the slice
shuffledSeed := pg.getMultiSeed(index, pg.wordSeedType.AllSeeds())
multiSeedList = append(multiSeedList, shuffledSeed)
}

Expand Down

0 comments on commit 75503b1

Please sign in to comment.