Skip to content

Commit a41fdf3

Browse files
authored
chore: fix wrong conditional (#1171)
1 parent d1ccb24 commit a41fdf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/studio/src/features/users/components/UserPermissionModal/AddUserModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const AddUserModal = () => {
7373
// Reason we are not using zodForm build-in schema is because the checking of whitelist
7474
// is an async operation requiring an API call, and combining them will be less readable
7575
const additionalEmailError = useMemo(
76-
() => isNonGovEmailInput || hasWhitelistError,
76+
() => isNonGovEmailInput && hasWhitelistError,
7777
[isNonGovEmailInput, hasWhitelistError],
7878
)
7979

0 commit comments

Comments
 (0)