Commit 2d708095 authored by fahrur huzain's avatar fahrur huzain

Merge branch 'dev/fahrur' into 'ENV-DEV'

update company defaulfcompany

See merge request !2043
parents cc170d70 f73becaf
...@@ -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