Skip to content

Commit

Permalink
Fix expiry check: expires gives the first version the metric expire…
Browse files Browse the repository at this point in the history
…s in (#1514)
  • Loading branch information
Iinh authored Nov 16, 2022
1 parent 88aab49 commit 8dd0e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state/items.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const isExpired = (item) => {
// if expires is a number, ie a version number, then compare it
// to the latest release version (only applied to Fx products)
if (!Number.isNaN(item.expires) && item.latest_fx_release_version) {
return Number(item.latest_fx_release_version) > item.expires;
return Number(item.latest_fx_release_version) >= item.expires;
}
return new Date() > new Date(item.expires);
};
Expand Down

0 comments on commit 8dd0e39

Please sign in to comment.