diff --git a/app/src/pages/UserAuth.tsx b/app/src/pages/UserAuth.tsx index 8b8453b..49f3899 100644 --- a/app/src/pages/UserAuth.tsx +++ b/app/src/pages/UserAuth.tsx @@ -38,7 +38,6 @@ const UserAuth: React.FC = () => { const handleLogin = async (e: FormEvent) => { e.preventDefault(); const organization = email.split("@")[1].split(".")[0]; - try { const res = await signInApi(email, password, organization, fingerprint); if (res.message.message === "login successfull") { diff --git a/app/src/utils/shortcutkeys/handleShortcutKeys.ts b/app/src/utils/shortcutkeys/handleShortcutKeys.ts index 14403fd..c8fd7b8 100644 --- a/app/src/utils/shortcutkeys/handleShortcutKeys.ts +++ b/app/src/utils/shortcutkeys/handleShortcutKeys.ts @@ -20,8 +20,10 @@ import useCameraModeStore, { import { detectModifierKeys } from "./detectModifierKeys"; import { useSelectedZoneStore } from "../../store/visualization/useZoneStore"; import { useLogger } from "../../components/ui/log/LoggerContext"; +import { useComparisonProduct } from "../../store/simulation/useSimulationStore"; const KeyPressListener: React.FC = () => { + const { clearComparisonProduct } = useComparisonProduct(); const { activeModule, setActiveModule } = useModuleStore(); const { setActiveSubTool } = useActiveSubTool(); const { toggleUILeft, toggleUIRight, setToggleUI } = useToggleStore(); @@ -170,6 +172,7 @@ const KeyPressListener: React.FC = () => { clearSelectedZone(); setShowShortcuts(false); setIsVersionSaved(false); + clearComparisonProduct(); setIsLogListVisible(false); setIsRenameMode(false); }