fix: arbitrator array index was incorrect (#363)

This commit is contained in:
Richard Ramos 2019-07-09 15:08:27 -04:00 committed by GitHub
parent 2873c1cb52
commit a100dde838
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class ArbitratorSelectorForm extends Component {
if(items.length){ if(items.length){
const item = items[0]; const item = items[0];
const index = item.substring(0, item.indexOf(' - ')); 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]);
} }
}; };