mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-15 01:49:10 +00:00
allow app to ready on init failures.
This commit is contained in:
parent
3d07efb5fa
commit
8227a3b00b
1 changed files with 4 additions and 1 deletions
|
@ -22,9 +22,12 @@ export const userInit = async dispatch => {
|
||||||
type: Symbol.for('set user'),
|
type: Symbol.for('set user'),
|
||||||
data: rsp.body
|
data: rsp.body
|
||||||
})
|
})
|
||||||
|
|
||||||
dispatch(fetchServers)
|
dispatch(fetchServers)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
dispatch({
|
||||||
|
type: Symbol.for('app ready')
|
||||||
|
})
|
||||||
// window.location.href = '/oauth/flow'
|
// window.location.href = '/oauth/flow'
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue