Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions app/interactives/compounding-frequency-calculator/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -505,19 +505,19 @@ export default function CompoundInterestCalculator() {
<Card className="w-full lg:w-1/2 bg-[var(--card-background)] rounded-3xl p-[32px]">
<CardContent className="p-0">
<h2 className="text-[20px] font-bold mb-1">
Balance after{" "}
Balance after
{hasError
? "-"
: `${periods} ${getPeriodText(selectedCompounding, Number(periods))}`}
? ""
: ` ${periods} ${getPeriodText(selectedCompounding, Number(periods))}`}
</h2>
<p className="text-3xl/normal font-bold text-[var(--color-teal)] mb-5 overflow-auto">
{hasError ? "-" : balanceStr}
</p>
<p className="text-[20px] font-bold mb-1">
Interest accrued over{" "}
Interest accrued over
{hasError
? "-"
: `${periods} ${getPeriodText(selectedCompounding, Number(periods))}`}
? ""
: ` ${periods} ${getPeriodText(selectedCompounding, Number(periods))}`}
</p>
<p className="text-3xl/normal font-bold text-foreground overflow-auto">
{hasError ? "-" : interestStr}
Expand Down