diff --git a/src/app/api/mobile/login/route.ts b/src/app/api/mobile/login/route.ts index 43820125b..d92b221bf 100644 --- a/src/app/api/mobile/login/route.ts +++ b/src/app/api/mobile/login/route.ts @@ -59,5 +59,5 @@ export async function POST (request: NextRequest): Promise { } function isNullOrEmpty (str: string | null | undefined): boolean { - return str?.trim() === '' + return str == null || str?.trim() === '' }