mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Replace router after connected
This commit is contained in:
parent
40b0e18b22
commit
ed0952c362
1 changed files with 2 additions and 2 deletions
|
|
@ -112,12 +112,12 @@ export default function Integrations(): JSX.Element {
|
|||
enabled: true,
|
||||
})
|
||||
if (result) {
|
||||
router.replace('/settings/integrations')
|
||||
showSuccessToast('Connected with Pocket.')
|
||||
revalidate()
|
||||
} else {
|
||||
showErrorToast('There was an error connecting to Pocket.')
|
||||
}
|
||||
router.replace('/settings/integrations')
|
||||
revalidate()
|
||||
} catch (err) {
|
||||
showErrorToast('Error: ' + err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue