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) {
const result = await this.dataProviderService.get([
{ dataSource: dataSource, symbol: symbol }
{ dataSource, symbol }
]);
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 }
]);
return {
symbol,
date: resetHours(date),
marketPrice: dataProviderResult?.[symbol]?.marketPrice ?? 0,
symbol: symbol
marketPrice: dataProviderResult?.[symbol]?.marketPrice ?? 0
};
}

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

@ -1,14 +1,14 @@
<gf-dialog-header
mat-dialog-title
title="Import Transactions Error"
[deviceType]="data.deviceType"
title="Import Transactions"
(closeButtonClicked)="onCancel()"
></gf-dialog-header>
<div class="flex-grow-1" mat-dialog-content>
<ul class="list-unstyled">
<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>
</div>
<div>{{ message }}</div>

Loading…
Cancel
Save