taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 77d234057f5be419fb82a25b1b07d265db6ac3e6
parent 36629278dd0abd1080f41b4f874a1001233ea6db
Author: Sebastian <sebasjm@gmail.com>
Date:   Tue,  6 May 2025 09:06:38 -0300

url doesn't have params

Diffstat:
Mpackages/challenger-ui/src/Routing.tsx | 49++++++-------------------------------------------
1 file changed, 6 insertions(+), 43 deletions(-)

diff --git a/packages/challenger-ui/src/Routing.tsx b/packages/challenger-ui/src/Routing.tsx @@ -25,13 +25,12 @@ import { Fragment, VNode, h } from "preact"; import { assertUnreachable } from "@gnu-taler/taler-util"; import { useErrorBoundary } from "preact/hooks"; import { CheckChallengeIsUpToDate } from "./components/CheckChallengeIsUpToDate.js"; -import { SessionId, useSessionState } from "./hooks/session.js"; +import { SessionId } from "./hooks/session.js"; import { AnswerChallenge } from "./pages/AnswerChallenge.js"; import { AskChallenge } from "./pages/AskChallenge.js"; import { CallengeCompleted } from "./pages/CallengeCompleted.js"; import { Frame } from "./pages/Frame.js"; import { Setup } from "./pages/Setup.js"; -import { usePreferences } from "./context/preferences.js"; export function Routing(): VNode { // check session and defined if this is @@ -92,8 +91,6 @@ function getSession(params: Record<string, string[]>) { function PublicRounting(): VNode { const loc = useCurrentLocation(publicPages); - const [{ showDebugInfo }] = usePreferences(); - const { state } = useSessionState(); const { i18n } = useTranslationContext(); const { navigateTo } = useNavigationContext(); useErrorBoundary((e) => { @@ -147,25 +144,13 @@ function PublicRounting(): VNode { <CheckChallengeIsUpToDate session={sessionId} onCompleted={() => { - navigateTo( - publicPages.completed.url({ - nonce: location.values.nonce, - }), - ); + navigateTo(publicPages.completed.url({})); }} onChangeLeft={() => { - navigateTo( - publicPages.ask.url({ - nonce: location.values.nonce, - }), - ); + navigateTo(publicPages.ask.url({})); }} onNoMoreChanges={() => { - navigateTo( - publicPages.ask.url({ - nonce: location.values.nonce, - }), - ); + navigateTo(publicPages.ask.url({})); }} > <i18n.Translate>No nonce has been found</i18n.Translate> @@ -192,19 +177,8 @@ function PublicRounting(): VNode { focus routeSolveChallenge={publicPages.answer} onSendSuccesful={() => { - navigateTo( - publicPages.answer.url({ - nonce: location.values.nonce, - }), - ); + navigateTo(publicPages.answer.url({})); }} - // onCompleted={() => { - // navigateTo( - // publicPages.completed.url({ - // nonce: location.values.nonce, - // }), - // ); - // }} /> ); } @@ -229,19 +203,8 @@ function PublicRounting(): VNode { session={sessionId} routeAsk={publicPages.ask} onComplete={() => { - navigateTo( - publicPages.completed.url({ - nonce: location.values.nonce, - }), - ); + navigateTo(publicPages.completed.url({})); }} - // onCompleted={() => { - // navigateTo( - // publicPages.completed.url({ - // nonce: location.values.nonce, - // }), - // ); - // }} /> ); }