Setting default relayer if none selected
This commit is contained in:
parent
002dbe2a7c
commit
84df807959
|
@ -127,7 +127,7 @@ class ApproveAndCallGasRelayed extends Component {
|
||||||
if (this.props.relayers.hasOwnProperty(key)) relayers.push(key);
|
if (this.props.relayers.hasOwnProperty(key)) relayers.push(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(relayer == '' && relayers.length == 1){
|
if(relayer == '' && relayers.length >= 1){
|
||||||
relayer = relayers[0];
|
relayer = relayers[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -132,7 +132,7 @@ class CallGasRelayed extends Component {
|
||||||
if (this.props.relayers.hasOwnProperty(key)) relayers.push(key);
|
if (this.props.relayers.hasOwnProperty(key)) relayers.push(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(relayer == '' && relayers.length == 1){
|
if(relayer == '' && relayers.length >= 1){
|
||||||
relayer = relayers[0];
|
relayer = relayers[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -134,7 +134,7 @@ class Execute extends Component {
|
||||||
if (this.props.relayers.hasOwnProperty(key)) relayers.push(key);
|
if (this.props.relayers.hasOwnProperty(key)) relayers.push(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(relayer == '' && relayers.length == 1){
|
if(relayer == '' && relayers.length >= 1){
|
||||||
relayer = relayers[0];
|
relayer = relayers[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -137,7 +137,7 @@ class TransferSNT extends Component {
|
||||||
if (this.props.relayers.hasOwnProperty(key)) relayers.push(key);
|
if (this.props.relayers.hasOwnProperty(key)) relayers.push(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(relayer == '' && relayers.length == 1){
|
if(relayer == '' && relayers.length >= 1){
|
||||||
relayer = relayers[0];
|
relayer = relayers[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue