You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/fdc3-trade-simulator/js-trader-app/src/app/components/trade-idea-generator/trade-idea-generator.component.ts
+26-25Lines changed: 26 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -167,32 +167,33 @@ export class TradeIdeaGeneratorComponent implements OnDestroy {
this.feedbackSubject.next(this.trader+" has bought "+this.currentValue+" symbol of: "+this.symbols.valueasstring+" for $"+price+".");
188
+
}else{
189
+
this.feedbackSubject.next(this.trader+" has indicated that "+this.currentValue+" symbol of: "+this.symbols.valueasstring+" is/are available for buying.");
this.feedbackSubject.next(this.trader+" has bought "+this.currentValue+" symbol of: "+this.symbols.valueasstring+" for $"+price+".");
187
-
}else{
188
-
this.feedbackSubject.next(this.trader+" has indicated that "+this.currentValue+" symbol of: "+this.symbols.valueasstring+" is/are available for buying.");
189
-
}
190
-
});
191
-
this.listeners.set(topic,listener);
192
-
}
193
-
194
-
awaitthis.channel.broadcast(context);
195
-
196
197
}catch(error){
197
198
this.feedbackSubject.next('Failed to broadcast trade idea.');
198
199
console.error('Error is thrown while broadcasting trade idea:',error);
0 commit comments