fix: arbitrator array index was incorrect (#363)
This commit is contained in:
parent
2873c1cb52
commit
a100dde838
|
@ -13,7 +13,7 @@ class ArbitratorSelectorForm extends Component {
|
|||
if(items.length){
|
||||
const item = items[0];
|
||||
const index = item.substring(0, item.indexOf(' - '));
|
||||
this.props.changeArbitrator(this.props.arbitrators[parseInt(index, 10)]);
|
||||
this.props.changeArbitrator(this.props.arbitrators[parseInt(index, 10) - 1]);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue