mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-29 01:28:48 +00:00
modalEmailRef initial state added
This commit is contained in:
parent
2800eb088f
commit
2d609fd8bd
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ const PasswordResetModal = ({ email, onCloseRequest }) => {
|
|||
const routeFocused = useRouteFocused();
|
||||
const [error, setError] = React.useState('');
|
||||
const [modalEmail, setModalEmail] = React.useState(typeof email === 'string' ? email : '');
|
||||
const modalEmailRef = React.useRef();
|
||||
const modalEmailRef = React.useRef(null);
|
||||
const passwordResetOnClick = React.useCallback(() => {
|
||||
modalEmail.length > 0 && modalEmailRef.current.validity.valid ?
|
||||
window.open('https://www.strem.io/reset-password/' + modalEmail, '_blank')
|
||||
|
|
|
|||
Loading…
Reference in a new issue