Skip to content

Commit

Permalink
I may be stupid 2
Browse files Browse the repository at this point in the history
  • Loading branch information
stanriders committed Feb 10, 2025
1 parent bdb9592 commit 400e89d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions frontend/src/pages/followers.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ export default function Followers() {
if (a.relationCreatedAt === b.relationCreatedAt) return 0;
if (a.relationCreatedAt === null) return 1;
if (b.relationCreatedAt === null) return -1;
return new Date(b.relationCreatedAt).getUTCDate() >
new Date(a.relationCreatedAt).getUTCDate()
return new Date(b.relationCreatedAt) >
new Date(a.relationCreatedAt)
? 1
: -1;
}
Expand Down Expand Up @@ -143,7 +143,7 @@ export async function getStaticProps(context) {

return {
props: {
messages: messages
messages: messages,
},
};
}
2 changes: 1 addition & 1 deletion frontend/src/pages/friends.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export async function getStaticProps(context) {

return {
props: {
messages: messages
messages: messages,
},
};
}

0 comments on commit 400e89d

Please sign in to comment.