diff --git a/src/app/_services/user.service.ts b/src/app/_services/user.service.ts index 8cb1963..3b161fb 100644 --- a/src/app/_services/user.service.ts +++ b/src/app/_services/user.service.ts @@ -211,6 +211,13 @@ export class UserService { if (typeof Worker !== 'undefined') { const worker = new Worker('@app/_workers/fetch-accounts.worker', { type: 'module' }); worker.onmessage = ({ data }) => { + this.tokenService.load.subscribe(async (status: boolean) => { + if (status) { + data.balance = await this.tokenService.getTokenBalance( + data.identities.evm[`bloxberg:${environment.bloxbergChainId}`][0] + ); + } + }); this.addAccount(data, limit); }; worker.postMessage({