mirror of https://github.com/waku-org/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"
|
variant="contained"
|
||||||
color="primary"
|
color="primary"
|
||||||
onClick={generateKeyPair}
|
onClick={generateKeyPair}
|
||||||
disabled={!provider}
|
disabled={!provider || !!ethDmKeyPair}
|
||||||
>
|
>
|
||||||
Generate Eth-DM Key Pair
|
Generate Eth-DM Key Pair
|
||||||
</Button>
|
</Button>
|
||||||
|
|
Loading…
Reference in New Issue