Remove onload event.
This commit is contained in:
parent
9439e25370
commit
156e937bc6
@ -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);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user