Browse Source

Clean up

pull/415/head
Thomas 4 years ago
parent
commit
00b100d6da
  1. 2
      apps/api/src/app/import/import.service.ts
  2. 4
      apps/api/src/app/portfolio/current-rate.service.ts
  3. 4
      apps/client/src/app/pages/portfolio/transactions/import-transaction-dialog/import-transaction-dialog.html

2
apps/api/src/app/import/import.service.ts

@ -59,7 +59,7 @@ export class ImportService {
for (const { dataSource, symbol } of orders) { for (const { dataSource, symbol } of orders) {
const result = await this.dataProviderService.get([ const result = await this.dataProviderService.get([
{ dataSource: dataSource, symbol: symbol } { dataSource, symbol }
]); ]);
if (result[symbol] === undefined) { if (result[symbol] === undefined) {

4
apps/api/src/app/portfolio/current-rate.service.ts

@ -30,9 +30,9 @@ export class CurrentRateService {
{ symbol, dataSource: DataSource.YAHOO } { symbol, dataSource: DataSource.YAHOO }
]); ]);
return { return {
symbol,
date: resetHours(date), date: resetHours(date),
marketPrice: dataProviderResult?.[symbol]?.marketPrice ?? 0, marketPrice: dataProviderResult?.[symbol]?.marketPrice ?? 0
symbol: symbol
}; };
} }

4
apps/client/src/app/pages/portfolio/transactions/import-transaction-dialog/import-transaction-dialog.html

@ -1,14 +1,14 @@
<gf-dialog-header <gf-dialog-header
mat-dialog-title mat-dialog-title
title="Import Transactions Error"
[deviceType]="data.deviceType" [deviceType]="data.deviceType"
title="Import Transactions"
(closeButtonClicked)="onCancel()" (closeButtonClicked)="onCancel()"
></gf-dialog-header> ></gf-dialog-header>
<div class="flex-grow-1" mat-dialog-content> <div class="flex-grow-1" mat-dialog-content>
<ul class="list-unstyled"> <ul class="list-unstyled">
<li *ngFor="let message of data.messages" class="d-flex"> <li *ngFor="let message of data.messages" class="d-flex">
<div class="align-items-center d-flex icon-container px-2"> <div class="align-items-center d-flex px-2">
<ion-icon name="warning-outline"></ion-icon> <ion-icon name="warning-outline"></ion-icon>
</div> </div>
<div>{{ message }}</div> <div>{{ message }}</div>

Loading…
Cancel
Save