Skip to content

Commit

Permalink
remove fixed rank
Browse files Browse the repository at this point in the history
  • Loading branch information
starknetdev committed Sep 28, 2023
1 parent 4eb62ab commit ef24bc5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ui/src/app/components/adventurer/DeathDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ import { getDeathMessageByRank } from "../../lib/utils";
import Image from "next/image";

export const DeathDialog = () => {
// const [rank, setRank] = useState<number | null>(null);
const rank = 1;
const [rank, setRank] = useState<number | null>(null);
const deathMessage = useLoadingStore((state) => state.deathMessage);
const setDeathMessage = useLoadingStore((state) => state.setDeathMessage);
const adventurer = useAdventurerStore((state) => state.adventurer);
Expand Down Expand Up @@ -48,7 +47,7 @@ export const DeathDialog = () => {
adventurer?.id ?? 0,
sortedAdventurersByXP?.adventurers ?? []
);
// setRank(rank + 1);
setRank(rank + 1);
})
.catch((error) => console.error("Error refetching data:", error));
}, []);
Expand Down

0 comments on commit ef24bc5

Please sign in to comment.