Skip to content

Commit 9a2e664

Browse files
fix build error
1 parent efe1bb2 commit 9a2e664

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/thirdweb/src/react/web/wallets/in-app/InputSelectionUI.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ export function InputSelectionUI(props: {
2929
const [countryCodeInfo, setCountryCodeInfo] = useState(
3030
props.defaultSmsCountryCode
3131
? getCountrySelector(props.defaultSmsCountryCode)
32-
: props.allowedSmsCountryCodes && props.allowedSmsCountryCodes.length > 0
32+
: props.allowedSmsCountryCodes &&
33+
props.allowedSmsCountryCodes.length > 0 &&
34+
props.allowedSmsCountryCodes[0]
3335
? getCountrySelector(props.allowedSmsCountryCodes[0])
3436
: "US +1",
3537
);

0 commit comments

Comments
 (0)