feat: encode pazuz_operatoridentifier header
chore: rename cookies to fit a standard fix: small fixes
This commit is contained in:
parent
990ab32583
commit
5b13ffe3d9
14 changed files with 41 additions and 19 deletions
|
|
@ -154,7 +154,9 @@ const App = () => {
|
|||
const [userData, setUserData] = useState(null)
|
||||
|
||||
const setRole = role => {
|
||||
if (userData && userData.role !== role) {
|
||||
console.log('role', role)
|
||||
console.log('userData', userData)
|
||||
if (userData && role && userData.role !== role) {
|
||||
setUserData({ ...userData, role })
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue