Skip to content

Commit

Permalink
fix: recover seed phrase - fixing double adding words
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry-Borodin committed Nov 10, 2023
1 parent 8fb57f5 commit 227a2a0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package io.parity.signer.screens.keysets.restore.restorephrase

import android.content.res.Configuration
import android.util.Log
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.IntrinsicSize
import androidx.compose.foundation.layout.Row
Expand All @@ -14,7 +13,6 @@ import androidx.compose.foundation.text.BasicTextField
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
Expand Down Expand Up @@ -85,7 +83,9 @@ fun EnterSeedPhraseBox(
textStyle = TextStyle(color = MaterialTheme.colors.primary),
value = seedWord.value, //as was before redesign, should been moved to rust but need to align with iOS
onValueChange = {
onEnteredChange(it.text)
if (it.text != seedWord.value.text) {
onEnteredChange(it.text)
}
seedWord.value = it
},
cursorBrush = SolidColor(MaterialTheme.colors.primary),
Expand Down

0 comments on commit 227a2a0

Please sign in to comment.