From 5f5adf7f4f93c241ec31412ee07272a988efd619 Mon Sep 17 00:00:00 2001 From: Austin Lee Date: Thu, 7 Nov 2024 22:25:23 +0900 Subject: [PATCH] 241107 Fix (#41) --- src/components/organisms/check/GrastaDashboard.tsx | 4 ++-- src/components/organisms/check/ManifestDashboard.tsx | 4 ++-- src/components/organisms/check/StaralignDashboard.tsx | 4 ++-- src/constants/enum.ts | 2 +- 4 files changed, 7 insertions(+), 7 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; 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",