Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
letiescanciano committed Nov 14, 2022
1 parent c734dc1 commit b659afe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export const AuthenticationProvider: React.FC<React.PropsWithChildren<unknown>>
return !!state.providers?.includes("password");
},
hasCorporateEmail(): boolean {
return !FREE_EMAIL_SERVICE_PROVIDERS.some((provider) => state.currentUser?.email.includes(provider));
return !FREE_EMAIL_SERVICE_PROVIDERS.some((provider) => state.currentUser?.email.endsWith(`@${provider}`));
},
async login(values: { email: string; password: string }): Promise<void> {
await authService.login(values.email, values.password);
Expand Down

0 comments on commit b659afe

Please sign in to comment.