Skip to content

Commit

Permalink
241107 Fix (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
HU-Lee authored Nov 7, 2024
1 parent 92b9979 commit 5f5adf7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/organisms/check/GrastaDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/components/organisms/check/ManifestDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/components/organisms/check/StaralignDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/constants/enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export type ManifestStatus =
// AE Data enums

export const AECharacterStyles = {
four: "4☆",
four: "☆4",
normal: "NS",
another: "AS",
extra: "ES",
Expand Down

0 comments on commit 5f5adf7

Please sign in to comment.