rename content into message for notifications
This commit is contained in:
@@ -6,9 +6,9 @@ export const userNotificationsListener = (echo, userData, setNotifications, setU
|
||||
.notification((notification) => {
|
||||
const newNotification = {
|
||||
id: notification.id,
|
||||
content: notification.message,
|
||||
data: { message: notification.message },
|
||||
read_at: null,
|
||||
created_at: new Date().toISOString(),
|
||||
pivot: { unread: 1 }
|
||||
};
|
||||
|
||||
setNotifications(prev => [newNotification, ...prev]);
|
||||
|
||||
Reference in New Issue
Block a user