Disable generate button if key is already present

This commit is contained in:
Franck Royer 2021-06-24 15:53:42 +10:00
parent d6d548a09e
commit bd0ad81d17
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 1 additions and 1 deletions

View File

@ -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>