Skip to content

Commit f78a7ac

Browse files
committed
Fix loop
1 parent 34d53b3 commit f78a7ac

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

client/notifications/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ export function Notifications() {
5353

5454
useEffect(
5555
function () {
56+
if (notifications.length === 0) {
57+
return
58+
}
59+
5660
const ends = notifications.map(
5761
(notification) => notification.created + notification.ttl,
5862
)

0 commit comments

Comments
 (0)