Skip to content

Commit

Permalink
misc: added explicit comment of intent
Browse files Browse the repository at this point in the history
  • Loading branch information
sheensantoscapadngan committed Jun 27, 2024
1 parent c460f22 commit b3463e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/views/admin/DashboardPage/AuthPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const AuthPanel = () => {
formState: { isSubmitting, isDirty }
} = useForm<TAuthForm>({
resolver: zodResolver(formSchema),
// if not yet explicitly defined by the admin, all login methods should be enabled by default
values: enabledLoginMethods
? {
isEmailEnabled: enabledLoginMethods.includes(LoginMethod.EMAIL),
Expand Down

0 comments on commit b3463e0

Please sign in to comment.