Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Fix issue where user gets stuck on TOS page (#9676)

Tim O'Farrellbfe0aa08b6a2
diff --git a/frontend/src/routes/accept-tos.tsx b/frontend/src/routes/accept-tos.tsx
index 3b39fbf21b..883a15b30e 100644
--- a/frontend/src/routes/accept-tos.tsx
+++ b/frontend/src/routes/accept-tos.tsx
@@ -45,6 +45,9 @@ export default function AcceptTOS() {
navigate(finalRedirectUrl);
}
},
+ onError: () => {
+ window.location.href = "/";
+ },
});
const handleAcceptTOS = () => {