Skip to content

Commit 34b111f

Browse files
committed
chore: convert empty description string to undefined
1 parent 2e606e2 commit 34b111f

File tree

1 file changed

+1
-0
lines changed
  • packages/backend/src/apps/paysg/actions/create-payment-form-submission

1 file changed

+1
-0
lines changed

packages/backend/src/apps/paysg/actions/create-payment-form-submission/schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export const requestSchema = z.object({
7676
.string()
7777
.trim()
7878
.max(500, { message: 'Description cannot be more than 500 characters' })
79+
.transform((value) => value || undefined)
7980
.optional(),
8081
responses: z.array(
8182
z.object({

0 commit comments

Comments
 (0)