修复 【兑换码管理】编辑页面,打开加款对话框,再关闭加款对话框,金额会展示为“NaN”

This commit is contained in:
wangsongsole 2022-06-15 14:43:12 +08:00
parent fd462e8c13
commit 87a5c34353
1 changed files with 4 additions and 1 deletions

View File

@ -132,7 +132,10 @@ export default ({ data, onChangeMoney }) => {
<p className='dflexajce'> <p className='dflexajce'>
<Button <Button
onClick={() => { onClick={() => {
onChangeMoney(false, Number(stateData.addNew)) onChangeMoney(
false,
stateData.addNew ? Number(stateData.addNew) : 0
)
}}> }}>
取消 取消
</Button> </Button>