diff --git a/src/lib/components/DividendAnnouncement.svelte b/src/lib/components/DividendAnnouncement.svelte
index c15fe224..30817ba7 100644
--- a/src/lib/components/DividendAnnouncement.svelte
+++ b/src/lib/components/DividendAnnouncement.svelte
@@ -1,6 +1,5 @@
@@ -80,14 +89,12 @@
Math.abs(rawData?.revenueSurprise),
true,
)}, with
- {((rawData?.revenue / rawData?.revenuePrior - 1) * 100)?.toFixed(
- 2,
- )}% 0
+ ? 'text-[#00FC50]'
+ : 'text-[#FF2F1F]'}">{revenueRatio}%
- YoY {rawData?.revenue / rawData?.revenuePrior - 1 < 0
- ? "decline"
- : "growth"}.
+ YoY {revenueRatio < 0 ? "decline" : "growth"}.
0 ? "exceeds" : "misses"} estimates by ${rawData?.epsSurprise?.toFixed(
2,
)}, with
- {(
- ((rawData?.eps - rawData?.epsPrior) /
- Math.abs(rawData?.epsPrior)) *
- 100
- )?.toFixed(2)}% 0
+ ? 'text-[#00FC50]'
+ : 'text-[#FF2F1F]'}">{epsRatio}%
- YoY {(rawData?.eps - rawData?.epsPrior) /
- Math.abs(rawData?.epsPrior) <
- 0
- ? "decline"
- : "growth"}.
+ YoY {epsRatio < 0 ? "decline" : "growth"}.
diff --git a/src/lib/components/NextEarnings.svelte b/src/lib/components/NextEarnings.svelte
index 3cf9e618..c401109b 100644
--- a/src/lib/components/NextEarnings.svelte
+++ b/src/lib/components/NextEarnings.svelte
@@ -1,6 +1,5 @@