From ceb8780cedaa5323ae42cf600fad39b8e446c8c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9F=83=E6=8B=89?= Date: Sun, 2 Jun 2024 17:51:20 +0800 Subject: [PATCH] fix(frontend): blood display in challenge modal --- web/src/components/modals/ChallengeModal.tsx | 8 ++++++-- web/src/components/navigations/Navbar.tsx | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/web/src/components/modals/ChallengeModal.tsx b/web/src/components/modals/ChallengeModal.tsx index a355b437..80e7caa9 100644 --- a/web/src/components/modals/ChallengeModal.tsx +++ b/web/src/components/modals/ChallengeModal.tsx @@ -283,7 +283,9 @@ export default function ChallengeModal(props: ChallengeModalProps) { alignItems: "center", }} > - + + + )} @@ -299,7 +301,9 @@ export default function ChallengeModal(props: ChallengeModalProps) { alignItems: "center", }} > - + + + )} diff --git a/web/src/components/navigations/Navbar.tsx b/web/src/components/navigations/Navbar.tsx index 96e9bc18..b8e57b12 100644 --- a/web/src/components/navigations/Navbar.tsx +++ b/web/src/components/navigations/Navbar.tsx @@ -16,10 +16,12 @@ import MDIcon from "@/components/ui/MDIcon"; import { useAuthStore } from "@/stores/auth"; import { useConfigStore } from "@/stores/config"; import { useEffect, useState } from "react"; +import { useTeamStore } from "@/stores/team"; export default function Navbar() { const authStore = useAuthStore(); const configStore = useConfigStore(); + const teamStore = useTeamStore(); const navigate = useNavigate(); const { colorScheme, setColorScheme } = useMantineColorScheme({ keepTransitions: true, @@ -31,6 +33,7 @@ export default function Navbar() { function logout() { authStore.setPgsToken(""); authStore.setUser(undefined); + teamStore.setSelectedTeamID(0); navigate("/login"); }