added null check to getToken function

This commit is contained in:
Abhinav-grd 2021-01-31 17:38:33 +05:30
parent aafdecdf13
commit 9ae7f45339

View file

@ -16,5 +16,5 @@ export const getActualKey = async () => {
}
export const getToken = () => {
return getData(LS_KEYS.USER).token;
return getData(LS_KEYS.USER)?.token;
}