Skip to content

Commit

Permalink
flag color
Browse files Browse the repository at this point in the history
  • Loading branch information
ga128k committed Mar 1, 2024
1 parent 1bfc154 commit a7eb31d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,13 @@ import { match } from "assert";
matchedImportTransaction.subtransactions =
existingPendingTransaction.subtransactions;

if (
!["red", "orange", "yellow", "green", "blue", "purple"].includes(
matchedImportTransaction.flag_color || ""
)
)
matchedImportTransaction.flag_color = undefined;

console.log(
`Transaction ${formatTransaction(
existingPendingTransaction
Expand Down

0 comments on commit a7eb31d

Please sign in to comment.