Skip to content

Commit

Permalink
fix: type 'string' is not assignable to type 'E164Number' #28 (#35)
Browse files Browse the repository at this point in the history
Co-Authored-By: omeralpi <omeralpi@icloud.com>
  • Loading branch information
aashishpanthi and omeralpi committed Nov 16, 2024
1 parent 711ea92 commit 08c56ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/ui/phone-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps> =
*
* @param {E164Number | undefined} value - The entered value
*/
onChange={(value) => onChange?.(value || "")}
onChange={(value) => onChange?.(value || ("" as RPNInput.Value))}
{...props}
/>
);
Expand Down
2 changes: 1 addition & 1 deletion content/snippets/phone-input.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps> =
*
* @param {E164Number | undefined} value - The entered value
*/
onChange={(value) => onChange?.(value || "")}
onChange={(value) => onChange?.(value || ("" as RPNInput.Value))}
{...props}
/>
);
Expand Down

0 comments on commit 08c56ce

Please sign in to comment.