From c2b9fc7b48d3e705cf3c522e59bc2642754cbaeb Mon Sep 17 00:00:00 2001 From: VickyStash Date: Fri, 2 Feb 2024 13:44:02 +0100 Subject: [PATCH] Minor TS fix --- src/libs/ErrorUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ErrorUtils.ts b/src/libs/ErrorUtils.ts index 72aa4ef42137..f3a526c0785c 100644 --- a/src/libs/ErrorUtils.ts +++ b/src/libs/ErrorUtils.ts @@ -66,7 +66,7 @@ function getLatestErrorMessage(onyxData: T return errors[key]; } -function getLatestErrorMessageField(onyxData: TOnyxData): Record { +function getLatestErrorMessageField(onyxData: TOnyxData): Errors { const errors = onyxData.errors ?? {}; if (Object.keys(errors).length === 0) {