Revalidate integrations after connected with pocket

This commit is contained in:
Hongbo Wu 2023-05-15 17:31:26 +08:00
parent c2e62155cc
commit 40b0e18b22

View file

@ -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.')
}