feat: fix empty value of countryCode for signup (#1620)

This commit is contained in:
Yaodong Yu
2023-03-05 21:52:40 +08:00
committed by GitHub
parent e8a7b7ee9c
commit 8427d63872
4 changed files with 8 additions and 22 deletions

View File

@ -16,7 +16,7 @@ import {Select} from "antd";
import * as Setting from "../Setting";
import React from "react";
export const PhoneNumberInput = (props) => {
export const CountryCodeSelect = (props) => {
const {onChange, style, disabled, value} = props;
const countryCodes = props.countryCodes ?? [];