aggre based time week, month, year renamed to daily, weekly, monthly

This commit is contained in:
2026-04-06 17:37:45 +05:30
parent 5f0fa91075
commit 8a866566ba
3 changed files with 15 additions and 15 deletions

View File

@@ -44,14 +44,14 @@ export default function HistoryChart({
if (amount === 0) return "";
if (tab === "year") {
if (tab === "monthly") {
if (amount >= 100000) {
return `${(amount / 100000).toFixed(2)} L`;
}
return `${amount.toLocaleString("en-IN")}`;
}
if (tab === "month") {
if (tab === "weekly") {
if (amount >= 1000) {
return `${(amount / 1000).toFixed(1)} K`;
}