fix: remove FormattedNumber

This commit is contained in:
2026-03-09 11:53:09 +01:00
parent 630363af1f
commit 8c9698c048
7 changed files with 17 additions and 71 deletions

View File

@@ -2,7 +2,6 @@ import {
calculateCoinsEarnedToday,
calculateCoinsSpentToday,
calculateTotalEarned,
calculateTotalSpent,
generateCryptoHash,
isHabitDue,
prepareDataForHashing,
@@ -70,13 +69,6 @@ export const totalEarnedAtom = atom((get) => {
return roundToInteger(value);
});
// Derived atom for total spent
export const totalSpentAtom = atom((get) => {
const coins = get(coinsAtom);
const value = calculateTotalSpent(coins.transactions);
return roundToInteger(value);
});
// Derived atom for coins spent today
export const coinsSpentTodayAtom = atom((get) => {
const coins = get(coinsAtom);