We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efe1bb2 commit 9a2e664Copy full SHA for 9a2e664
packages/thirdweb/src/react/web/wallets/in-app/InputSelectionUI.tsx
@@ -29,7 +29,9 @@ export function InputSelectionUI(props: {
29
const [countryCodeInfo, setCountryCodeInfo] = useState(
30
props.defaultSmsCountryCode
31
? getCountrySelector(props.defaultSmsCountryCode)
32
- : props.allowedSmsCountryCodes && props.allowedSmsCountryCodes.length > 0
+ : props.allowedSmsCountryCodes &&
33
+ props.allowedSmsCountryCodes.length > 0 &&
34
+ props.allowedSmsCountryCodes[0]
35
? getCountrySelector(props.allowedSmsCountryCodes[0])
36
: "US +1",
37
);
0 commit comments