aggre based time week, month, year renamed to daily, weekly, monthly
This commit is contained in:
@@ -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`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user