From a7eb31d5a7b43bb218fa03e1b7614b765190f676 Mon Sep 17 00:00:00 2001 From: ga128k Date: Fri, 1 Mar 2024 15:13:44 -0600 Subject: [PATCH] flag color --- index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.ts b/index.ts index 83ad38d..eacea93 100644 --- a/index.ts +++ b/index.ts @@ -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