Skip to content

Commit 2baf387

Browse files
committed
[app-notifications] fix expiry time of cached notification
1 parent 62a6639 commit 2baf387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/dashboard/src/AppNotifications.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function setLocalStorageObject(key: string, object: Object, expiresInSeconds: nu
7878
try {
7979
window.localStorage.setItem(
8080
key,
81-
JSON.stringify({ expirationTime: Date.now() + expiresInSeconds * (1000 * 60), value: object }),
81+
JSON.stringify({ expirationTime: Date.now() + expiresInSeconds * 1000, value: object }),
8282
);
8383
} catch (error) {
8484
console.error("Setting localstorage item failed", key, object, error);

0 commit comments

Comments
 (0)