mirror of https://github.com/status-im/js-waku.git
Disable generate button if key is already present
This commit is contained in:
parent
d6d548a09e
commit
bd0ad81d17
|
@ -153,7 +153,7 @@ function App() {
|
|||
variant="contained"
|
||||
color="primary"
|
||||
onClick={generateKeyPair}
|
||||
disabled={!provider}
|
||||
disabled={!provider || !!ethDmKeyPair}
|
||||
>
|
||||
Generate Eth-DM Key Pair
|
||||
</Button>
|
||||
|
|
Loading…
Reference in New Issue