fix: update device name handling in notification service to ensure fallback value is used #51

Merged
bragaz_rexita merged 1 commits from wisdom into main 2026-04-30 08:59:26 +00:00
Showing only changes of commit bca65fe090 - Show all commits

View File

@@ -393,7 +393,7 @@ class NotifikasiWaService {
const now = new Date();
const year = now.getFullYear();
const reminderAt = new Date(deviceReminder[0].reminder_at);
const deviceName = new Date(deviceReminder[0].device_name);
const deviceName = deviceReminder[0].device_name ?? '-';
// 🔹 ambil bulan & jam dalam timezone server
const nowParts = new Intl.DateTimeFormat('en-US', {