We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9beb51 commit 08400b2Copy full SHA for 08400b2
client/src/helpers/transactions.ts
@@ -349,7 +349,12 @@ export const buildCategoryToTransactionsTotalMap = (
349
currentTotalCategory + transaction.amount
350
);
351
352
- if (transaction.subcategory !== null && transaction.subcategory !== "") {
+ if (
353
+ transaction.subcategory !== null &&
354
+ transaction.subcategory !== "" &&
355
+ transaction.subcategory.toLocaleLowerCase() !==
356
+ (transaction.category ?? "").toLocaleLowerCase()
357
+ ) {
358
const currentTotalSubCategory =
359
categoryToTransactionsTotalMap.get(
360
transaction.subcategory.toLocaleLowerCase()
0 commit comments