mirror of
https://github.com/status-im/snt-gas-relay.git
synced 2025-01-26 22:28:56 +00:00
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(relayer == '' && relayers.length == 1){
|
||||
if(relayer == '' && relayers.length >= 1){
|
||||
relayer = relayers[0];
|
||||
}
|
||||
|
||||
|
@ -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];
|
||||
}
|
||||
|
||||
|
@ -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];
|
||||
}
|
||||
|
||||
|
@ -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];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user