remove unsued params from hook
This commit is contained in:
1 parent
29cfc4fb41
commit
a86bc59e09
1 file changed
-3
@@ -98,12 +98,9 @@ const useGetNotificationById = (id, setNotification) => {
|
|||||||
const notification = response?.data?.data ?? null;
|
const notification = response?.data?.data ?? null;
|
||||||
|
|
||||||
const notificationData = {
|
const notificationData = {
|
||||||
userId: notification?.userId,
|
|
||||||
teamId: notification?.teamId,
|
|
||||||
address: notification?.address,
|
address: notification?.address,
|
||||||
notificationName: notification?.notificationName,
|
notificationName: notification?.notificationName,
|
||||||
type: NOTIFICATION_TYPES.find((type) => type.value === notification?.type)?._id,
|
type: NOTIFICATION_TYPES.find((type) => type.value === notification?.type)?._id,
|
||||||
config: notification?.config,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
setNotification(notificationData);
|
setNotification(notificationData);
|
||||||
|
|||||||
Reference in new issue
Block a user