Skip to content

Commit

Permalink
fix: ensure action-based statuses are at top
Browse files Browse the repository at this point in the history
  • Loading branch information
theusaf committed Apr 25, 2024
1 parent c2a98bc commit 0af9cac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions websites/M/Minecraft Wiki/presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ presence.on("UpdateData", async () => {
presenceData.largeImageKey =
locationSpecificLogos[hostname.split(".")[0]] ?? Assets.Logo;

if (mainPath === "/") presenceData.details = strings.viewHome;
else if (
if (
searchParams.get("action") === "edit" ||
searchParams.get("veaction") === "edit"
) {
Expand All @@ -80,7 +79,8 @@ presence.on("UpdateData", async () => {
? strings.changeProtection
: strings.viewProtection;
presenceData.state = pageTitle;
} else if (mainPath.startsWith("User:")) {
} else if (mainPath === "/") presenceData.details = strings.viewHome;
else if (mainPath.startsWith("User:")) {
presenceData.details = strings.viewUser;
presenceData.state = pageTitle.slice(5);
presenceData.buttons = [{ label: strings.buttonViewProfile, url: href }];
Expand Down

0 comments on commit 0af9cac

Please sign in to comment.