Skip to content

Commit

Permalink
date comparison order fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wprzyb authored Nov 22, 2023
1 parent 0c7be97 commit 80911d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function Home() {
const expirationTimestamp =
ak_proxy.user_attributes.membershipExpirationTimestamp * 1000;

const relative = formatDistance(Date.now(), new Date(expirationTimestamp), {
const relative = formatDistance(new Date(expirationTimestamp), Date.now(), {
addSuffix: true,
});

Expand Down

0 comments on commit 80911d4

Please sign in to comment.