From 834b0861df1f7bf205c8a4d68f43303d109c8908 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 27 Aug 2024 10:20:14 -0300 Subject: fix #9137 --- packages/challenger-ui/src/pages/CallengeCompleted.tsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages') diff --git a/packages/challenger-ui/src/pages/CallengeCompleted.tsx b/packages/challenger-ui/src/pages/CallengeCompleted.tsx index f99e1ee32..bff7b68f5 100644 --- a/packages/challenger-ui/src/pages/CallengeCompleted.tsx +++ b/packages/challenger-ui/src/pages/CallengeCompleted.tsx @@ -16,12 +16,17 @@ import { Attention, useTranslationContext } from "@gnu-taler/web-util/browser"; import { Fragment, VNode, h } from "preact"; import { useSessionState } from "../hooks/session.js"; +import { useEffect } from "preact/hooks"; export function CallengeCompleted(): VNode { const { state } = useSessionState(); const { i18n } = useTranslationContext(); + useEffect(() => { + window.location.href = state?.completedURL ?? "#" + },[]) + return (