From bc6034e71e00987d315399385046950f15b1bd4f Mon Sep 17 00:00:00 2001 From: Amy Evans Date: Mon, 18 Sep 2023 21:39:18 +0800 Subject: [PATCH 1/2] Add tag field to Transaction --- src/types/onyx/Transaction.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/onyx/Transaction.ts b/src/types/onyx/Transaction.ts index 4326920ab51f..a5d936f141a9 100644 --- a/src/types/onyx/Transaction.ts +++ b/src/types/onyx/Transaction.ts @@ -38,6 +38,7 @@ type Transaction = { state?: ValueOf; }; routes?: Routes; + tag: string; }; export default Transaction; From af272b99ca1de48405bea489a94ffcc237065050 Mon Sep 17 00:00:00 2001 From: Amy Evans Date: Mon, 18 Sep 2023 21:39:59 +0800 Subject: [PATCH 2/2] Make category field required --- src/types/onyx/Transaction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/onyx/Transaction.ts b/src/types/onyx/Transaction.ts index a5d936f141a9..de128d85e6b1 100644 --- a/src/types/onyx/Transaction.ts +++ b/src/types/onyx/Transaction.ts @@ -21,7 +21,7 @@ type Routes = Record; type Transaction = { transactionID: string; amount: number; - category?: string; + category: string; currency: string; reportID: string; comment: Comment;