Skip to content

Commit 24a5690

Browse files
committed
set private var networkType in getter
1 parent ca1102d commit 24a5690

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/infrastructure/Http.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export abstract class Http {
4444
if (!this.networkType) {
4545
networkTypeResolve = observableFrom(new NodeRoutesApi(this.url).getNodeInfo()).pipe(
4646
map(({body}) => {
47+
this.networkType = body.networkIdentifier;
4748
return body.networkIdentifier;
4849
}),
4950
catchError((error) => throwError(this.errorHandling(error))),

0 commit comments

Comments
 (0)