aboutsummaryrefslogtreecommitdiff
path: root/modern/src/login/RegisterPage.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/login/RegisterPage.jsx')
-rw-r--r--modern/src/login/RegisterPage.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/login/RegisterPage.jsx b/modern/src/login/RegisterPage.jsx
index 1ec791a1..cffed803 100644
--- a/modern/src/login/RegisterPage.jsx
+++ b/modern/src/login/RegisterPage.jsx
@@ -42,7 +42,7 @@ const RegisterPage = () => {
const [name, setName] = useState('');
const [email, setEmail] = useState('');
const [password, setPassword] = useState('');
- const [totpKey, setTotpKey] = useState('');
+ const [totpKey, setTotpKey] = useState(null);
const [snackbarOpen, setSnackbarOpen] = useState(false);
useEffectAsync(async () => {
@@ -114,7 +114,7 @@ const RegisterPage = () => {
required
label={t('loginTotpKey')}
name="totpKey"
- value={totpKey}
+ value={totpKey || ''}
InputProps={{
readOnly: true,
}}