Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix: type

Marc Seitz906e042c51d6
diff --git a/components/ui/phone-input.tsx b/components/ui/phone-input.tsx
index e6e28f1a..0c1f0103 100644
--- a/components/ui/phone-input.tsx
+++ b/components/ui/phone-input.tsx
@@ -1,5 +1,6 @@
import * as React from "react";
+import { E164Number } from "libphonenumber-js/types.cjs";
import { CheckIcon, ChevronsUpDown } from "lucide-react";
import * as RPNInput from "react-phone-number-input";
import flags from "react-phone-number-input/flags";
@@ -51,7 +52,7 @@ const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps> =
*
* @param {E164Number | undefined} value - The entered value
*/
- onChange={(value) => onChange?.(value || "")}
+ onChange={(value) => onChange?.((value || "") as E164Number)}
{...props}
/>
);