Skip to content

Commit 64e7872

Browse files
author
Greg S
committed
issue #82: removed bugfix in favor of mergeMap bugfix for mosaicInfo injection
1 parent b6aa399 commit 64e7872

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/service/MosaicService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export class MosaicService {
4949
mosaicsView(mosaicIds: MosaicId[]): Observable<MosaicView[]> {
5050
return observableOf(mosaicIds).pipe(
5151
mergeMap((_) => this.mosaicHttp.getMosaics(mosaicIds).pipe(
52+
mergeMap((_) => _),
5253
map((mosaicInfo: MosaicInfo) => {
5354
return new MosaicView(mosaicInfo);
5455
}),
@@ -66,7 +67,7 @@ export class MosaicService {
6667
mergeMap((mosaic: Mosaic) => this.mosaicsView([mosaic.id]).pipe(
6768
filter((_) => _.length !== 0),
6869
map<MosaicView[], MosaicAmountView>((mosaicViews) => {
69-
return new MosaicAmountView(mosaicViews[0].mosaicInfo[0], mosaic.amount);
70+
return new MosaicAmountView(mosaicViews[0].mosaicInfo, mosaic.amount);
7071
}),
7172
toArray())));
7273
}

0 commit comments

Comments
 (0)