From 137498d718e0168f3f17d250dfa9bff6c9c09e7e Mon Sep 17 00:00:00 2001 From: Georgia Monahan Date: Mon, 15 Dec 2025 14:37:13 +0000 Subject: [PATCH 1/2] nest in units to match classic --- src/types/onyx/Policy.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/types/onyx/Policy.ts b/src/types/onyx/Policy.ts index 9c228ec0ac68..abc9835ee82e 100644 --- a/src/types/onyx/Policy.ts +++ b/src/types/onyx/Policy.ts @@ -1870,12 +1870,15 @@ type Policy = OnyxCommon.OnyxValueWithOfflineFeedback< /** Collection of tax rates attached to a policy */ taxRates?: TaxRatesWithDefault; - /** Time tracking configuration */ - time?: { - /** Whether time tracking is enabled */ - enabled?: boolean; - /** Default hourly rate */ - rate?: number; + /** Units configuration */ + units?: { + /** Time tracking configuration */ + time?: { + /** Whether time tracking is enabled */ + enabled?: boolean; + + /** Default hourly rate */ + rate?: number; }; /** A set of rules related to the workspace */ From 58f9335c3399e0455b38e4afeca3adeedb7059cc Mon Sep 17 00:00:00 2001 From: Georgia Monahan Date: Thu, 18 Dec 2025 09:07:11 -0800 Subject: [PATCH 2/2] fix brackets --- src/types/onyx/Policy.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/onyx/Policy.ts b/src/types/onyx/Policy.ts index ab3e0810b3fd..c564fc3f84d6 100644 --- a/src/types/onyx/Policy.ts +++ b/src/types/onyx/Policy.ts @@ -1882,6 +1882,7 @@ type Policy = OnyxCommon.OnyxValueWithOfflineFeedback< /** Default hourly rate */ rate?: number; + }; }; /** A set of rules related to the workspace */