correct error message for NEXT_PUBLIC_ROLLUP_L2_WITHDRAWAL_URL

This commit is contained in:
isstuev
2024-07-05 12:09:54 +02:00
parent 1739dfba0e
commit 533b099fdd
+1 -1
View File
@@ -257,7 +257,7 @@ const rollupSchema = yup
.when('NEXT_PUBLIC_ROLLUP_TYPE', {
is: (value: string) => value === 'optimistic',
then: (schema) => schema.test(urlTest).required(),
otherwise: (schema) => schema.max(-1, 'NEXT_PUBLIC_ROLLUP_L2_WITHDRAWAL_URL cannot not be used if NEXT_PUBLIC_ROLLUP_TYPE is not defined'),
otherwise: (schema) => schema.max(-1, 'NEXT_PUBLIC_ROLLUP_L2_WITHDRAWAL_URL can be used only if NEXT_PUBLIC_ROLLUP_TYPE is set to \'optimistic\' '),
}),
});