diff --git a/src/modules/queue/domain/helpers/time.helper.ts b/src/modules/queue/domain/helpers/time.helper.ts index 1eeecba..0335208 100644 --- a/src/modules/queue/domain/helpers/time.helper.ts +++ b/src/modules/queue/domain/helpers/time.helper.ts @@ -15,6 +15,7 @@ export function phoneNumberOnly(phone: string): string { } export function sanitizePhoneNumber(phone: string): string { + if (!phone) return phone; // Remove all non-numeric characters first const cleanPhone = phone.replace(/[^0-9]/g, '');