Feat/polish-perf #13

Merged
math-pixel merged 20 commits from feat/polish-perf into develop 2026-05-31 22:11:59 +00:00
Showing only changes of commit 4a43083178 - Show all commits
+2 -3
View File
@@ -22,7 +22,7 @@ import { useSettingsStore } from "@/managers/stores/useSettingsStore";
import { useWorldSettingsStore } from "@/managers/stores/useWorldSettingsStore";
import type { HandTrackingSource } from "@/types/handTracking/handTracking";
import type { SubtitleLanguage } from "@/types/settings/settings";
import { clearSiteVisited } from "@/utils/cookies/siteVisitCookie";
import { hasSiteBeenVisitedToday } from "@/utils/cookies/siteVisitCookie";
import { Debug } from "@/utils/debug/Debug";
function formatPercent(value: number): string {
@@ -169,9 +169,8 @@ export function GameSettingsMenu(): React.JSX.Element | null {
const handleRestart = (): void => {
resetGame();
clearSiteVisited();
setSettingsMenuOpen(false);
window.location.assign("/");
window.location.assign(hasSiteBeenVisitedToday() ? "/" : "/site");
};
const handleHandTrackingSourceChange = (source: HandTrackingSource): void => {