diff options
author | Sebastian <sebasjm@gmail.com> | 2024-08-27 10:20:14 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-08-27 10:20:14 -0300 |
commit | 834b0861df1f7bf205c8a4d68f43303d109c8908 (patch) | |
tree | 680cd8fc2057198ba7b9c2c222470803c44927f0 /packages | |
parent | f547bf658742751a9b9b046a869cec116b025f46 (diff) |
fix #9137
Diffstat (limited to 'packages')
-rw-r--r-- | packages/challenger-ui/src/pages/CallengeCompleted.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
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 ( <div class="m-4"> <Attention |