From 3da299bddc4bf76b7fb1f4c8ebf4a9d35d18140a Mon Sep 17 00:00:00 2001 From: ekzyis Date: Mon, 25 Mar 2024 09:53:34 +0100 Subject: [PATCH] Fix zapUndos not nullable in schema --- lib/validate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/validate.js b/lib/validate.js index 858e4f85..1baa31c9 100644 --- a/lib/validate.js +++ b/lib/validate.js @@ -531,7 +531,7 @@ export const settingsSchema = object({ diagnostics: boolean(), noReferralLinks: 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'