Fix zapUndos not nullable in schema

This commit is contained in:
ekzyis 2024-03-25 09:53:34 +01:00
parent fe3724aa7d
commit 3da299bddc
1 changed files with 1 additions and 1 deletions

View File

@ -531,7 +531,7 @@ export const settingsSchema = object({
diagnostics: boolean(), diagnostics: boolean(),
noReferralLinks: boolean(), noReferralLinks: boolean(),
hideIsContributor: boolean(), hideIsContributor: boolean(),
zapUndos: intValidator.required('required').min(0, 'must be greater or equal to 0') zapUndos: intValidator.nullable().min(0, 'must be greater or equal to 0')
}) })
const warningMessage = 'If I logout, even accidentally, I will never be able to access my account again' const warningMessage = 'If I logout, even accidentally, I will never be able to access my account again'