Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #338 from The-Code-Monkey/The-Code-Monkey-patch-4
Browse files Browse the repository at this point in the history
Update page.tsx
  • Loading branch information
The-Code-Monkey authored Feb 2, 2024
2 parents dc4e766 + 994f221 commit 842090b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/[board]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Page = async ({ params }: PageProps) => {
const data = await getData(board);

const sortedData = data.sort((a, b) => {
if (board.includes('wr')) {
if (board.includes('wr') && a.wrs && b.wrs) {
if (a?.wrs > b?.wrs) {
return -1;
}
Expand Down

1 comment on commit 842090b

@vercel
Copy link

@vercel vercel bot commented on 842090b Feb 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.