Skip to content

Commit

Permalink
fix: remove the chaining operator
Browse files Browse the repository at this point in the history
  • Loading branch information
sdrejkarz committed May 15, 2024
1 parent d82a0f8 commit 1c3942d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const Notifications: FC<NotificationsProps> = ({ templates, events }) =>
options.data?.data?.notificationCreated?.notification
);

if (notificationData?.type) events[notificationData?.type as NotificationTypes]?.();
if (notificationData) events[notificationData.type as NotificationTypes]?.();

options.client.cache.updateQuery({ query: notificationsListQuery }, (prev) => {
const prevListData = getFragmentData(notificationsListContentFragment, prev);
Expand Down

0 comments on commit 1c3942d

Please sign in to comment.