code refactor

This commit is contained in:
MaysWind
2025-05-10 01:08:57 +08:00
parent 1d2002e92f
commit 9c695ee46d
@@ -335,7 +335,7 @@ export function useTransactionListPageBase() {
return '';
}
function getDisplayMonthTotalAmount(amount: number, currency: string, symbol: string, incomplete: boolean): string {
function getDisplayMonthTotalAmount(amount: number, currency: string | false, symbol: string, incomplete: boolean): string {
const displayAmount = formatAmountWithCurrency(amount, currency);
return symbol + displayAmount + (incomplete ? '+' : '');
}