Skip to content

Commit

Permalink
logic updates
Browse files Browse the repository at this point in the history
  • Loading branch information
surbhi-posthog committed Dec 6, 2024
1 parent 5a63f8f commit 1c81718
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend/src/scenes/authentication/inviteSignupLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,12 @@ export const inviteSignupLogic = kea<inviteSignupLogicType>([
forms(({ actions, values }) => ({
signup: {
defaults: { role_at_organization: '' } as AcceptInvitePayloadInterface,
errors: ({ password, first_name }) => ({
password: !password ? 'Please enter your password to continue' : values.validatedPassword.feedback,
errors: ({ password, first_name, role_at_organization }) => ({
password: !password
? 'Please enter your password to continue'
: values.validatedPassword.feedback || undefined,
first_name: !first_name ? 'Please enter your name' : undefined,
role_at_organization: !role_at_organization ? 'Please select your role to continue' : undefined,
}),
submit: async (payload, breakpoint) => {
breakpoint()
Expand Down

0 comments on commit 1c81718

Please sign in to comment.