diff --git a/source_clean/src/cloud/notification.service.ts b/source_clean/src/cloud/notification.service.ts index 6faa931..aecd3bc 100644 --- a/source_clean/src/cloud/notification.service.ts +++ b/source_clean/src/cloud/notification.service.ts @@ -92,7 +92,7 @@ export function notifyInfo(title: string, detail: string): void { } function applyTemplate(template: string, vars: Record): string { - return template.replace(/\{([^}]+)\}/g, (_, key) => vars[key] || '{' + key + '}'); + return template.replace(/\{([^}]+)\}/g, (_, key) => vars[key] ?? '{' + key + '}'); } function getEventTemplates(): Record {