From 40b0e18b2295d728b28bc9c1deb78c84bb6e9b11 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Mon, 15 May 2023 17:31:26 +0800 Subject: [PATCH] Revalidate integrations after connected with pocket --- packages/web/pages/settings/integrations.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/web/pages/settings/integrations.tsx b/packages/web/pages/settings/integrations.tsx index 2572a23d4..a906ec184 100644 --- a/packages/web/pages/settings/integrations.tsx +++ b/packages/web/pages/settings/integrations.tsx @@ -112,8 +112,9 @@ export default function Integrations(): JSX.Element { enabled: true, }) if (result) { - revalidate() + router.replace('/settings/integrations') showSuccessToast('Connected with Pocket.') + revalidate() } else { showErrorToast('There was an error connecting to Pocket.') }