From e1d86816a7c07cb8ca2d54676d5cdbbe513f2ba7 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 4 Sep 2023 14:17:55 -0300 Subject: backoffcie new version, lot of changes --- packages/merchant-backoffice-ui/src/schemas/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/merchant-backoffice-ui/src/schemas/index.ts') diff --git a/packages/merchant-backoffice-ui/src/schemas/index.ts b/packages/merchant-backoffice-ui/src/schemas/index.ts index 149761c55..4be77595b 100644 --- a/packages/merchant-backoffice-ui/src/schemas/index.ts +++ b/packages/merchant-backoffice-ui/src/schemas/index.ts @@ -123,7 +123,7 @@ export const InstanceSchema = yup.object().shape({ export const InstanceUpdateSchema = InstanceSchema.clone().omit(["id"]); export const InstanceCreateSchema = InstanceSchema.clone(); -export const AuthorizeTipSchema = yup.object().shape({ +export const AuthorizeRewardSchema = yup.object().shape({ justification: yup.string().required(), amount: yup .string() @@ -161,7 +161,7 @@ export const OrderCreateSchema = yup.object().shape({ currencyGreaterThan0, ), }), - extra: yup.string().test("extra", "is not a JSON format", stringIsValidJSON), + // extra: yup.object().test("extra", "is not a JSON format", stringIsValidJSON), payments: yup .object() .required() -- cgit v1.2.3