diff --git a/app/src/client/pages/AppsPage.tsx b/app/src/client/pages/AppsPage.tsx index 4892b7f..e7e7ff5 100644 --- a/app/src/client/pages/AppsPage.tsx +++ b/app/src/client/pages/AppsPage.tsx @@ -18,6 +18,11 @@ export function AppsPage({ }) { const desk = useDesk(settings); const [saving, setSaving] = useState(false); + const [callbackError] = useState(() => { + const err = new URLSearchParams(location.search).get("error"); + if (err) history.replaceState(null, "", "/apps"); + return err; + }); // Reconcile connections on arrival so statuses and any pending Google // consent link are current, not left over from the last visit. @@ -76,6 +81,14 @@ export function AppsPage({ read and act on — flip them anytime.
+ {callbackError && ( +