fix: email validation failure in cases when email entered is correct when trying to create a team in admin dashboard (#3588)

Co-authored-by: jamesgeorge007 <jamesgeorge998001@gmail.com>
This commit is contained in:
Joel Jacob Stephen
2023-11-29 21:49:49 +05:30
committed by GitHub
parent 8f1ca6e282
commit 144d14ab5b
4 changed files with 31 additions and 7 deletions

View File

@@ -183,7 +183,7 @@ const createTeam = async (newTeamName: string, ownerEmail: string) => {
toast.error(`${t('state.team_name_long')}`);
return;
}
if (ownerEmail.length == 0) {
if (ownerEmail.length === 0) {
toast.error(`${t('state.enter_team_email')}`);
return;
}