From 8b1ef2cc1d729d2a8df63bb35440dbbf5568b594 Mon Sep 17 00:00:00 2001 From: Dick Wolff <5620002+dickwolff@users.noreply.github.com> Date: Tue, 9 Jul 2024 08:15:36 +0200 Subject: [PATCH] Whitespace cleanup --- src/converters/investimentalConverter.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/converters/investimentalConverter.ts b/src/converters/investimentalConverter.ts index ab955a4..2ec17f2 100644 --- a/src/converters/investimentalConverter.ts +++ b/src/converters/investimentalConverter.ts @@ -9,7 +9,6 @@ import customParseFormat from "dayjs/plugin/customParseFormat"; import { GhostfolioOrderType } from "../models/ghostfolioOrderType"; import { GhostfolioActivity } from "../models/ghostfolioActivity"; - export class InvestimentalConverter extends AbstractConverter { constructor(securityService: SecurityService) { @@ -160,11 +159,11 @@ export class InvestimentalConverter extends AbstractConverter { let newlyExecutedVolume = remainingVolume - record.volume; if (record.status === "Inactive") { newlyExecutedVolume = record.volume; - } + } executedVolume += newlyExecutedVolume; - totalValue += newlyExecutedVolume * (record.price || lastPrice); - + totalValue += newlyExecutedVolume * (record.price || lastPrice); } + lastFee = record.fee || lastFee; lastPrice = record.price || lastPrice; remainingVolume = record.volume; @@ -207,6 +206,4 @@ export class InvestimentalConverter extends AbstractConverter { const match = accountName.match(/\[(\w+)\]/); return match ? match[1] : null; } - - -} \ No newline at end of file +}