Remove onload event.

This commit is contained in:
Spencer Ofwiti 2021-06-09 19:37:05 +03:00
parent 9439e25370
commit 156e937bc6

View File

@ -12,7 +12,6 @@ import { BehaviorSubject, Observable, Subject } from 'rxjs';
export class TokenService { export class TokenService {
registry: CICRegistry; registry: CICRegistry;
tokenRegistry: TokenRegistry; tokenRegistry: TokenRegistry;
onload: (status: boolean) => void;
tokens: Array<Token> = []; tokens: Array<Token> = [];
private tokensList: BehaviorSubject<Array<Token>> = new BehaviorSubject<Array<Token>>( private tokensList: BehaviorSubject<Array<Token>> = new BehaviorSubject<Array<Token>>(
this.tokens this.tokens
@ -29,7 +28,6 @@ export class TokenService {
await this.registry.getContractAddressByName('TokenRegistry') await this.registry.getContractAddressByName('TokenRegistry')
); );
this.load.next(true); this.load.next(true);
this.onload(this.tokenRegistry !== undefined);
}; };
} }