Skip to content

Commit b90d5db

Browse files
authored
handle empty token string
1 parent ec5146f commit b90d5db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/modules/User/pages/EmailVerificationView.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const EmailVerificationView = () => {
2525
}
2626
}, [dispatch, verificationToken]);
2727
let status = null;
28-
if (verificationToken == null) {
28+
if (!verificationToken) {
2929
status = <p>{t('EmailVerificationView.InvalidTokenNull')}</p>;
3030
} else if (emailVerificationTokenState === 'checking') {
3131
status = <p>{t('EmailVerificationView.Checking')}</p>;

0 commit comments

Comments
 (0)