mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-19 03:11:38 +03:00
added null safety while accessing accessToken
This commit is contained in:
parent
70425000ac
commit
575fd3fcca
@ -832,7 +832,7 @@ class ApplicationContainer extends Component {
|
||||
//updateing fcm token with settings;
|
||||
otherAccounts.forEach((account) => {
|
||||
//since there can be more than one accounts, process access tokens separate
|
||||
const encAccessToken = account.local.accessToken;
|
||||
const encAccessToken = account?.local?.accessToken;
|
||||
//decrypt access token
|
||||
let accessToken = null;
|
||||
if (encAccessToken) {
|
||||
|
Loading…
Reference in New Issue
Block a user