diff options
| author | Faithfulness Alamu <vaguemail369@gmail.com> | 2021-07-16 21:32:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-16 13:32:20 -0700 |
| commit | 0b68be68ff1abbc6434f615454d79b1d266f4a87 (patch) | |
| tree | ed4db3026708cc895de66cce292b5d3a8ef61e92 /src/components | |
| parent | 6e2fde4e223d2e846764e00cad26926b2d5f542f (diff) | |
Unset password when encryption mode is 'None' (#53)
* Unset password when encryption mode is 'None'
Fixes #46
* Run code format
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Card.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/components/Card.js b/src/components/Card.js index 50db589..756c62c 100644 --- a/src/components/Card.js +++ b/src/components/Card.js | |||
| @@ -150,9 +150,13 @@ export const Card = () => { | |||
| 150 | name="encrypt-select" | 150 | name="encrypt-select" |
| 151 | id="encrypt-none" | 151 | id="encrypt-none" |
| 152 | value="nopass" | 152 | value="nopass" |
| 153 | onChange={(e) => | 153 | onChange={(e) => { |
| 154 | setNetwork({ ...network, encryptionMode: e.target.value }) | 154 | setNetwork({ |
| 155 | } | 155 | ...network, |
| 156 | encryptionMode: e.target.value, | ||
| 157 | password: '', | ||
| 158 | }); | ||
| 159 | }} | ||
| 156 | /> | 160 | /> |
| 157 | <label for="encrypt-none">None</label> | 161 | <label for="encrypt-none">None</label> |
| 158 | <input | 162 | <input |
