rename content into message for notifications
This commit is contained in:
1 parent
d23fd55134
commit
60d6f067b4
1 file changed
+2
-2
@@ -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