diff --git a/backend/src/helpers/CheckSettings.ts b/backend/src/helpers/CheckSettings.ts index b6cead7..89059db 100644 --- a/backend/src/helpers/CheckSettings.ts +++ b/backend/src/helpers/CheckSettings.ts @@ -12,7 +12,7 @@ const CheckSettings = async ( } }); - if (!setting && !defaultValue) { + if (!setting && defaultValue === null) { throw new AppError("ERR_NO_SETTING_FOUND", 404); } @@ -31,7 +31,7 @@ export const GetCompanySetting = async ( } }); - if (!setting && !defaultValue) { + if (!setting && defaultValue === null) { throw new AppError("ERR_NO_SETTING_FOUND", 404); }