Skip to content

Commit

Permalink
Default TOTP key to null
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Nov 2, 2023
1 parent 6a368f7 commit d59b39c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modern/src/login/RegisterPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -114,7 +114,7 @@ const RegisterPage = () => {
required
label={t('loginTotpKey')}
name="totpKey"
value={totpKey}
value={totpKey || ''}
InputProps={{
readOnly: true,
}}
Expand Down

0 comments on commit d59b39c

Please sign in to comment.