next-helios-fe 1.8.19 → 1.8.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-helios-fe",
3
- "version": "1.8.19",
3
+ "version": "1.8.20",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1547,7 +1547,7 @@ export const PhoneNumber: React.FC<PhoneNumberProps> = ({
1547
1547
  placeholder="Phone number"
1548
1548
  required={rest.required}
1549
1549
  disabled={rest.disabled}
1550
- value={(rest.value as string).split(selectedCountry)[1]}
1550
+ value={((rest.value || "") as string).split(selectedCountry)[1]}
1551
1551
  onChange={(e) => {
1552
1552
  rest.onChange &&
1553
1553
  rest.onChange({
@@ -1629,7 +1629,9 @@ export const PhoneNumber: React.FC<PhoneNumberProps> = ({
1629
1629
  rest.onChange({
1630
1630
  target: {
1631
1631
  value: `${item.dial_code}${
1632
- (rest.value as string).split(selectedCountry)[1]
1632
+ ((rest.value || "") as string).split(
1633
+ selectedCountry
1634
+ )[1]
1633
1635
  }`,
1634
1636
  } as HTMLInputElement,
1635
1637
  } as any);