From 84df8079590626cd89878ef5099385156b500fdf Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Fri, 14 Sep 2018 15:19:10 -0400 Subject: [PATCH] Setting default relayer if none selected --- test-dapp/app/components/approveandcallgasrelayed.js | 2 +- test-dapp/app/components/callgasrelayed.js | 2 +- test-dapp/app/components/execute.js | 2 +- test-dapp/app/components/transfersnt.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test-dapp/app/components/approveandcallgasrelayed.js b/test-dapp/app/components/approveandcallgasrelayed.js index 36ecb0e..b2abd48 100644 --- a/test-dapp/app/components/approveandcallgasrelayed.js +++ b/test-dapp/app/components/approveandcallgasrelayed.js @@ -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]; } diff --git a/test-dapp/app/components/callgasrelayed.js b/test-dapp/app/components/callgasrelayed.js index f93f6a4..35126f5 100644 --- a/test-dapp/app/components/callgasrelayed.js +++ b/test-dapp/app/components/callgasrelayed.js @@ -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]; } diff --git a/test-dapp/app/components/execute.js b/test-dapp/app/components/execute.js index a71ecb0..25e20a6 100644 --- a/test-dapp/app/components/execute.js +++ b/test-dapp/app/components/execute.js @@ -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]; } diff --git a/test-dapp/app/components/transfersnt.js b/test-dapp/app/components/transfersnt.js index d0c5e6e..ed8dca4 100644 --- a/test-dapp/app/components/transfersnt.js +++ b/test-dapp/app/components/transfersnt.js @@ -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]; }