Merged in fix/LOY-519-handle-null-identifier (pull request #3329)

fix(LOY-519): handle null values on icon identifier

* fix(LOY-519): handle null values on icon identifier


Approved-by: Erik Tiekstra
This commit is contained in:
Matilda Landström
2025-12-12 07:37:43 +00:00
parent 0597b09c08
commit c051474ffc

View File

@@ -9,7 +9,10 @@ export const essentialsSchema = z.object({
items: z.array(
z.object({
label: z.string(),
icon_identifier: z.string(),
icon_identifier: z
.string()
.nullish()
.transform((identifier) => identifier ?? "discount-2-2"),
description: z.string().nullish(),
})
),