Skip to content

Commit

Permalink
Merge pull request #30363 from bernhardoj/fix/29192-regression
Browse files Browse the repository at this point in the history
Fix crash when opening sign in modal as anonymous user

(cherry picked from commit 348c010)
  • Loading branch information
marcochavezf authored and OSBotify committed Oct 25, 2023
1 parent 5dd0608 commit eaf9267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/signin/LoginForm/BaseLoginForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const defaultProps = {

function LoginForm(props) {
const input = useRef();
const [login, setLogin] = useState(() => Str.removeSMSDomain(props.credentials.login));
const [login, setLogin] = useState(() => Str.removeSMSDomain(props.credentials.login || ''));
const [formError, setFormError] = useState(false);
const prevIsVisible = usePrevious(props.isVisible);

Expand Down

0 comments on commit eaf9267

Please sign in to comment.