Commit f73becaf authored by fahrur huzain's avatar fahrur huzain

update company defaulfcompany

parent cc170d70
...@@ -508,7 +508,7 @@ export default class CreatePerusahaan extends Component { ...@@ -508,7 +508,7 @@ export default class CreatePerusahaan extends Component {
}, () => { }, () => {
if (this.state.defaultCurrency) { if (this.state.defaultCurrency) {
const result = this.state.currency.find((elem) => elem.id === this.state.defaultCurrency.id) const result = this.state.currency.find((elem) => elem.id === this.state.defaultCurrency.id)
this.setState({ defaultCurrency: result }) this.setState({ defaultCurrency: "" })
} }
}) })
...@@ -808,7 +808,7 @@ export default class CreatePerusahaan extends Component { ...@@ -808,7 +808,7 @@ export default class CreatePerusahaan extends Component {
}, () => { }, () => {
if (this.state.defaultCurrency) { if (this.state.defaultCurrency) {
const result = this.state.currency.find((elem) => elem.id === this.state.defaultCurrency.id) const result = this.state.currency.find((elem) => elem.id === this.state.defaultCurrency.id)
this.setState({ defaultCurrency: result }) this.setState({ defaultCurrency: "" })
} }
this.clearError() this.clearError()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment