Skip to content

Commit

Permalink
fix spelling index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Pronoss authored Jan 26, 2025
1 parent 22f584c commit 72d88d2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ export default function UsernameTextRecordInlineField({
disabled = false,
}: UsernameTextRecordInlineFieldProps) {
const usernameSocialHandleFieldId = useId();
const [validationError, setValiationHint] = useState<string>('');
const [validationError, setValidationHint] = useState<string>('');
const onTextRecordChange = useCallback(
(event: ChangeEvent<HTMLInputElement>) => {
const textRecordValue = event.target.value;

if (!validateTextRecordValue(textRecordKey, textRecordValue)) {
setValiationHint(textRecordHintForDisplay(textRecordKey));
setValidationHint(textRecordHintForDisplay(textRecordKey));
} else {
setValiationHint('');
setValidationHint('');
}

if (onChange) onChange(textRecordKey, textRecordValue);
Expand Down

0 comments on commit 72d88d2

Please sign in to comment.