mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Replace router if connection failed
This commit is contained in:
parent
ed0952c362
commit
a842fecf7f
1 changed files with 3 additions and 2 deletions
|
|
@ -116,10 +116,11 @@ export default function Integrations(): JSX.Element {
|
|||
} else {
|
||||
showErrorToast('There was an error connecting to Pocket.')
|
||||
}
|
||||
router.replace('/settings/integrations')
|
||||
revalidate()
|
||||
} catch (err) {
|
||||
showErrorToast('Error: ' + err)
|
||||
} finally {
|
||||
router.replace('/settings/integrations')
|
||||
revalidate()
|
||||
}
|
||||
}
|
||||
if (!router.isReady) return
|
||||
|
|
|
|||
Loading…
Reference in a new issue