Merge pull request 'fix: update device name handling in notification service to ensure fallback value is used' (#51) from wisdom into main
Reviewed-on: #51
This commit is contained in:
@@ -393,7 +393,7 @@ class NotifikasiWaService {
|
|||||||
const now = new Date();
|
const now = new Date();
|
||||||
const year = now.getFullYear();
|
const year = now.getFullYear();
|
||||||
const reminderAt = new Date(deviceReminder[0].reminder_at);
|
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
|
// 🔹 ambil bulan & jam dalam timezone server
|
||||||
const nowParts = new Intl.DateTimeFormat('en-US', {
|
const nowParts = new Intl.DateTimeFormat('en-US', {
|
||||||
|
|||||||
Reference in New Issue
Block a user