diff --git a/src/components/close-trade.tsx b/src/components/close-trade.tsx index 2bb7406..62ee0ec 100644 --- a/src/components/close-trade.tsx +++ b/src/components/close-trade.tsx @@ -17,7 +17,7 @@ import { useEffect, useState } from 'react'; import { Trade } from '@prisma/client'; import { ITradeView } from '@/lib/types'; import { mapTradeToView } from '@/lib/useTrades'; -import { currencyFormatter, percentageFormatter } from '@/lib/formatters'; +import { currencyFormatter, fixedCurrencyFormatter, percentageFormatter } from '@/lib/formatters'; import { TickerName } from './TickerName'; @@ -36,12 +36,12 @@ const SubComp = (props: { t: Trade }) => { - Max Profit: {t1.maximumProfit} + Max Profit: {fixedCurrencyFormatter(t1.maximumProfit)} Expected Profit per day: {currencyFormatter(t1.averageProfitPerDay)} Expected TotalReturn/Annual Return: {percentageFormatter(t1.maxReturn)}/{percentageFormatter(t1.maxAnnualizedReturn)} - Estimated Profit: {currencyFormatter(t1.actualProfit)} + Estimated Profit: {fixedCurrencyFormatter(t1.actualProfit)} Estimated Annualized Returns: {percentageFormatter(t1.actualAnnualizedReturn)} - Estimated profit per day: {currencyFormatter(t1.actualProfitPerDay)} + Estimated profit per day: {fixedCurrencyFormatter(t1.actualProfitPerDay)}