added null check to getToken function
This commit is contained in:
parent
aafdecdf13
commit
9ae7f45339
1 changed files with 1 additions and 1 deletions
|
@ -16,5 +16,5 @@ export const getActualKey = async () => {
|
|||
}
|
||||
|
||||
export const getToken = () => {
|
||||
return getData(LS_KEYS.USER).token;
|
||||
return getData(LS_KEYS.USER)?.token;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue