mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-13 03:46:39 +00:00
feat: disable continue button for not connected
This commit is contained in:
parent
eff6fc4a75
commit
ce5d8dfe1b
@ -24,6 +24,7 @@ const ContinueButton = ({
|
||||
const { isCopyPastedPhrase, isRightPhrase, words, validWords } = useSelector(
|
||||
(state: RootState) => state.keyGeneration,
|
||||
)
|
||||
const { isWalletConnected } = useSelector((state: RootState) => state.deposit)
|
||||
const dispatch = useDispatch()
|
||||
|
||||
useEffect(() => {
|
||||
@ -31,9 +32,12 @@ const ContinueButton = ({
|
||||
}, [words])
|
||||
|
||||
const isDisabled = () => {
|
||||
const isDepositWalletConnected = isWalletConnected === false && activeStep === 5
|
||||
|
||||
if (
|
||||
(isConfirmPhraseStage && !isRightPhrase) ||
|
||||
(isConfirmPhraseStage && validWords.some(w => w === false))
|
||||
(isConfirmPhraseStage && validWords.some(w => w === false)) ||
|
||||
isDepositWalletConnected
|
||||
) {
|
||||
return true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user