Force reload after logout
This is a much easier and foolproof way to ensure that people can't edit their grid after logging out.
This commit is contained in:
parent
ba025b8fd8
commit
1e820f184e
2 changed files with 1 additions and 4 deletions
|
|
@ -78,9 +78,7 @@ const Header = () => {
|
|||
if (key !== 'language') accountState[key] = resetState[key]
|
||||
})
|
||||
|
||||
if (router.route != '/new') appState.party.editable = false
|
||||
|
||||
router.push('/')
|
||||
router.reload()
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ import Party from '~components/Party'
|
|||
|
||||
import { appState } from '~utils/appState'
|
||||
import { groupWeaponKeys } from '~utils/groupWeaponKeys'
|
||||
import generateTitle from '~utils/generateTitle'
|
||||
import organizeRaids from '~utils/organizeRaids'
|
||||
import setUserToken from '~utils/setUserToken'
|
||||
import api from '~utils/api'
|
||||
|
|
|
|||
Loading…
Reference in a new issue