Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { ISDCodeProps } from "constants/ISDCodes_v2";
import { ISDCodeOptions } from "constants/ISDCodes_v2";

export function validateInput(props: any) {
const value = props.text ?? "";
const value = props.parsedText ?? "";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct the typo in the return object's property name.

- validattionStatus: isInvalid ? "invalid" : undefined,
+ validationStatus: isInvalid ? "invalid" : undefined,
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const value = props.parsedText ?? "";
const value = props.parsedText ?? "";
// Other code in the function
return {
validationStatus: isInvalid ? "invalid" : undefined,
// Other properties in the return object
};

const isInvalid = "isValid" in props && !props.isValid && !!props.isDirty;

const conditionalProps: any = {};
Expand Down