diff --git a/functions/src/create-fold.ts b/functions/src/create-fold.ts index b582760b..e86db2a1 100644 --- a/functions/src/create-fold.ts +++ b/functions/src/create-fold.ts @@ -30,9 +30,8 @@ export const createFold = functions.runWith({ minInstances: 1 }).https.onCall( name = name.trim().slice(0, 140) - if (!about || typeof about !== 'string') - return { status: 'error', message: 'About must be a non-empty string' } - + if (typeof about !== 'string') + return { status: 'error', message: 'About must be a string' } about = about.trim().slice(0, 140) if (!_.isArray(tags)) diff --git a/web/components/create-fold-button.tsx b/web/components/create-fold-button.tsx index 02a7e448..c68f1223 100644 --- a/web/components/create-fold-button.tsx +++ b/web/components/create-fold-button.tsx @@ -57,7 +57,7 @@ export function CreateFoldButton() { }} submitBtn={{ label: 'Create', - className: clsx(name && about ? 'btn-primary' : 'btn-disabled'), + className: clsx(name ? 'btn-primary' : 'btn-disabled'), }} onSubmit={onSubmit} > @@ -95,7 +95,7 @@ export function CreateFoldButton() {