diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/src/schemas/index.ts')
-rw-r--r-- | packages/merchant-backoffice-ui/src/schemas/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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() |