Browse Source

fix bug

pull/2/head
Muhammad Sulaiman Yusuf 2 years ago
parent
commit
6b289c3a07
  1. 4
      src/views/SimproV2/CreatedProyek/DialogFormProyek.js

4
src/views/SimproV2/CreatedProyek/DialogFormProyek.js

@ -103,7 +103,7 @@ const DialogFormProyek = ({ openDialog, closeDialog, toggleDialog, idTask, dataT
const result = await axios.get(CURRENCY_LIST, HEADER).then(res => res).catch(err => err.response)
const defaultVal = result.data.data.find(val => val.cc == "IDR")
setCurrencyList(result.data.data)
setCurrencySymbol(`${defaultVal.cc}|${defaultVal.symbol}|${defaultVal.name}`)
setCurrencySymbol(`${defaultVal.symbol}`)
}
const handleClearData = () => {
@ -441,7 +441,7 @@ const DialogFormProyek = ({ openDialog, closeDialog, toggleDialog, idTask, dataT
<Label className="capitalize">Budget<span style={{ color: "red" }}>*</span></Label>
<Row>
<Col md={4}>
<Select value={currencySymbol} defaultValue="IDR|Rp|Indonesian rupiah" onChange={onChangeCurrency} placeholder="Select Currency" style={{ width: '100%' }}>
<Select value={currencySymbol} onChange={onChangeCurrency} placeholder="Select Currency" style={{ width: '100%' }}>
{currencyList && currencyList.map(res => (
<Option key={res.id} value={`${res.cc}|${res.symbol}|${res.name}`}>{`${res.cc}`}</Option>
))}

Loading…
Cancel
Save