Reset label
This commit is contained in:
@@ -13,6 +13,7 @@ import Header from '@/components/Header';
|
||||
|
||||
import styles from './style.less';
|
||||
import h5plus from '@/utils/h5plus';
|
||||
import { displayLabel } from '@/utils/transform';
|
||||
|
||||
const Option = Select.Option;
|
||||
|
||||
@@ -44,7 +45,7 @@ const DrawPage: React.FC<DispatchProp & DrawModelState> = ({
|
||||
<div className={styles.none}>{formatMessage({ id: 'common.loadError' })}</div>
|
||||
);
|
||||
} else if (pageState === PageState.Success) {
|
||||
const coinLabel = coin && coin.label.toUpperCase();
|
||||
const coinLabel = displayLabel(coin && coin.label);
|
||||
const onScan = async () => {
|
||||
if (h5plus.isApp()) {
|
||||
const result = await h5plus.scan();
|
||||
@@ -99,7 +100,7 @@ const DrawPage: React.FC<DispatchProp & DrawModelState> = ({
|
||||
<Option
|
||||
key={it.id}
|
||||
value={it.id}
|
||||
>{(it.label || '').toUpperCase()}</Option>
|
||||
>{displayLabel(it.label)}</Option>
|
||||
))}
|
||||
</Select>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user