Skip to content

Commit

Permalink
fix: prevent notification fallback logic from being stuck (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
shelegdmitriy authored Apr 8, 2024
1 parent 975116e commit 4522291
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NearOrg/Notifications/NotificationsMiddleware.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const [shouldFallback, setShouldFallback] = useState(false);

const lastNotificationQuery = `
query IndexerQuery {
data: dataplatform_near_notifications_notifications( limit: 1, order_by: { block_height: desc }) {
data: dataplatform_near_notifications_notifications( limit: 1, order_by: { blockHeight: desc }) {
blockHeight
}
}
Expand Down Expand Up @@ -121,7 +121,7 @@ useEffect(() => {
setNotifications([]);
setNotificationsCount(0);
};
}, []);
}, [lastNotificationOnChain]);

return (
<Widget
Expand Down

0 comments on commit 4522291

Please sign in to comment.