From 509b7787d469a3640b56d7fdaca4a46454260525 Mon Sep 17 00:00:00 2001 From: Austin Lee Date: Thu, 7 Nov 2024 22:17:05 +0900 Subject: [PATCH 1/2] Fix sort option --- src/components/organisms/check/GrastaDashboard.tsx | 4 ++-- src/components/organisms/check/ManifestDashboard.tsx | 4 ++-- src/components/organisms/check/StaralignDashboard.tsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/organisms/check/GrastaDashboard.tsx b/src/components/organisms/check/GrastaDashboard.tsx index de95906..f1d942e 100644 --- a/src/components/organisms/check/GrastaDashboard.tsx +++ b/src/components/organisms/check/GrastaDashboard.tsx @@ -35,8 +35,8 @@ function GrastaDashboard({ invenStatusFilter.includes(getInvenStatus(allCharacters, char, inven)) ) .sort((a, b) => { - const aIsRecent = dayjs().subtract(3, "week").isBefore(dayjs(a.updateDate)); - const bIsRecent = dayjs().subtract(3, "week").isBefore(dayjs(b.updateDate)); + const aIsRecent = dayjs().subtract(3, "week").isBefore(dayjs(a.lastUpdated)); + const bIsRecent = dayjs().subtract(3, "week").isBefore(dayjs(b.lastUpdated)); if (aIsRecent && !bIsRecent) return -1; if (!aIsRecent && bIsRecent) return 1; diff --git a/src/components/organisms/check/ManifestDashboard.tsx b/src/components/organisms/check/ManifestDashboard.tsx index d91571d..145a5e0 100644 --- a/src/components/organisms/check/ManifestDashboard.tsx +++ b/src/components/organisms/check/ManifestDashboard.tsx @@ -33,8 +33,8 @@ function ManifestDashboard({ ) ) .sort((a, b) => { - const aIsRecent = dayjs().subtract(3, "week").isBefore(dayjs(a.updateDate)); - const bIsRecent = dayjs().subtract(3, "week").isBefore(dayjs(b.updateDate)); + const aIsRecent = dayjs().subtract(3, "week").isBefore(dayjs(a.lastUpdated)); + const bIsRecent = dayjs().subtract(3, "week").isBefore(dayjs(b.lastUpdated)); if (aIsRecent && !bIsRecent) return -1; if (!aIsRecent && bIsRecent) return 1; diff --git a/src/components/organisms/check/StaralignDashboard.tsx b/src/components/organisms/check/StaralignDashboard.tsx index 36ad61a..c5a4b2b 100644 --- a/src/components/organisms/check/StaralignDashboard.tsx +++ b/src/components/organisms/check/StaralignDashboard.tsx @@ -32,8 +32,8 @@ function StaralignDashboard({ invenStatusFilter.includes(getInvenStatus(allCharacters, char, inven)) ) .sort((a, b) => { - const aIsRecent = dayjs().subtract(3, "week").isBefore(dayjs(a.updateDate)); - const bIsRecent = dayjs().subtract(3, "week").isBefore(dayjs(b.updateDate)); + const aIsRecent = dayjs().subtract(3, "week").isBefore(dayjs(a.lastUpdated)); + const bIsRecent = dayjs().subtract(3, "week").isBefore(dayjs(b.lastUpdated)); if (aIsRecent && !bIsRecent) return -1; if (!aIsRecent && bIsRecent) return 1; From 4f654194ee4a7cf230d13e075bd024e03c25c575 Mon Sep 17 00:00:00 2001 From: Austin Lee Date: Thu, 7 Nov 2024 22:18:25 +0900 Subject: [PATCH 2/2] Fix the enum --- src/constants/enum.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constants/enum.ts b/src/constants/enum.ts index ac8164b..34b1db3 100644 --- a/src/constants/enum.ts +++ b/src/constants/enum.ts @@ -85,7 +85,7 @@ export type ManifestStatus = // AE Data enums export const AECharacterStyles = { - four: "4☆", + four: "☆4", normal: "NS", another: "AS", extra: "ES",