Setting default relayer if none selected

This commit is contained in:
Richard Ramos 2018-09-14 15:19:10 -04:00
parent 002dbe2a7c
commit 84df807959
4 changed files with 4 additions and 4 deletions

View File

@ -127,7 +127,7 @@ class ApproveAndCallGasRelayed extends Component {
if (this.props.relayers.hasOwnProperty(key)) relayers.push(key);
}
if(relayer == '' && relayers.length == 1){
if(relayer == '' && relayers.length >= 1){
relayer = relayers[0];
}

View File

@ -132,7 +132,7 @@ class CallGasRelayed extends Component {
if (this.props.relayers.hasOwnProperty(key)) relayers.push(key);
}
if(relayer == '' && relayers.length == 1){
if(relayer == '' && relayers.length >= 1){
relayer = relayers[0];
}

View File

@ -134,7 +134,7 @@ class Execute extends Component {
if (this.props.relayers.hasOwnProperty(key)) relayers.push(key);
}
if(relayer == '' && relayers.length == 1){
if(relayer == '' && relayers.length >= 1){
relayer = relayers[0];
}

View File

@ -137,7 +137,7 @@ class TransferSNT extends Component {
if (this.props.relayers.hasOwnProperty(key)) relayers.push(key);
}
if(relayer == '' && relayers.length == 1){
if(relayer == '' && relayers.length >= 1){
relayer = relayers[0];
}