fix: update device name handling in notification service to ensure fallback value is used
This commit is contained in:
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user