Skip to content

Commit

Permalink
Minor TS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VickyStash committed Feb 2, 2024
1 parent 39bc7f1 commit c2b9fc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ErrorUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function getLatestErrorMessage<TOnyxData extends OnyxDataWithErrors>(onyxData: T
return errors[key];
}

function getLatestErrorMessageField<TOnyxData extends OnyxDataWithErrors>(onyxData: TOnyxData): Record<string, string> {
function getLatestErrorMessageField<TOnyxData extends OnyxDataWithErrors>(onyxData: TOnyxData): Errors {
const errors = onyxData.errors ?? {};

if (Object.keys(errors).length === 0) {
Expand Down

0 comments on commit c2b9fc7

Please sign in to comment.