From c95af90b28570a69dbc0adb0480877691aa63f32 Mon Sep 17 00:00:00 2001 From: enes Date: Thu, 9 Jan 2025 14:04:45 +0100 Subject: [PATCH] fix(mod): set original author field to optional --- src/pages/submitMod/action.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/pages/submitMod/action.ts b/src/pages/submitMod/action.ts index a731d0c..5d042b5 100644 --- a/src/pages/submitMod/action.ts +++ b/src/pages/submitMod/action.ts @@ -209,13 +209,6 @@ const validateState = async ( } } - if ( - formState.repost && - (!formState.originalAuthor || formState.originalAuthor === '') - ) { - errors.originalAuthor = 'Original author field can not be empty' - } - if (!formState.tags || formState.tags === '') { errors.tags = 'Tags field can not be empty' }