Skip to content

Commit

Permalink
Merge branch 'main' into chore/adding-i18n-to-banner
Browse files Browse the repository at this point in the history
  • Loading branch information
rhys-burendo authored Nov 26, 2024
2 parents e24894f + e38d261 commit e137471
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/api/requests/suggestions/postSuggestions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test('Handles successful submission from the api', async () => {

const { success } = await postSuggestions({
what_was_your_reason_for_visiting_the_dashboard_today: '',
did_you_find_everything_you_were_looking_for: 'yes',
did_you_find_everything_you_were_looking_for: 'Yes',
how_could_we_improve_your_experience_with_the_dashboard: '',
what_would_you_like_to_see_on_the_dashboard_in_the_future: '',
})
Expand Down
9 changes: 1 addition & 8 deletions src/schemas/feedback.schema.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
import * as z from 'zod'

export const feedbackSchema = z
.object({
what_was_your_reason_for_visiting_the_dashboard_today: z.string().optional().nullable(),
did_you_find_everything_you_were_looking_for: z.enum(['yes', 'no']).or(z.undefined()),
how_could_we_improve_your_experience_with_the_dashboard: z.string().optional().nullable(),
what_would_you_like_to_see_on_the_dashboard_in_the_future: z.string().optional().nullable(),
})
.required()
export const feedbackSchema = z.record(z.string(), z.string())

0 comments on commit e137471

Please sign in to comment.