Apply suggestions from code review

Co-authored-by: Eric Mastro <eric.mastro@gmail.com>
This commit is contained in:
RichΛrd 2020-09-16 08:45:35 -04:00 committed by Iuri Matias
parent e46ab433f4
commit 6a42124489
1 changed files with 2 additions and 6 deletions

View File

@ -98,7 +98,7 @@ ModalPopup {
visible: false visible: false
accounts: walletModel.accounts accounts: walletModel.accounts
contacts: profileModel.addedContacts contacts: profileModel.addedContacts
selectedRecipient: { "address": profileModel.ens.ensRegisterAddress, "type": RecipientSelector.Type.Address } ////////////////////////////// selectedRecipient: { "address": profileModel.ens.ensRegisterAddress, "type": RecipientSelector.Type.Address }
readOnly: true readOnly: true
onSelectedRecipientChanged: gasSelector.estimateGas() onSelectedRecipientChanged: gasSelector.estimateGas()
} }
@ -156,9 +156,7 @@ ModalPopup {
"symbol": "ETH", "symbol": "ETH",
"fiatValue": gasSelector.selectedGasFiatValue "fiatValue": gasSelector.selectedGasFiatValue
} }
toAccount: { toAccount: selectRecipient.selectedRecipient
return selectRecipient.selectedRecipient
}
asset: root.asset asset: root.asset
currency: walletModel.defaultCurrency currency: walletModel.defaultCurrency
amount: { amount: {
@ -218,7 +216,6 @@ ModalPopup {
label: qsTr("Next") label: qsTr("Next")
disabled: !stack.currentGroup.isValid disabled: !stack.currentGroup.isValid
onClicked: { onClicked: {
const isValid = stack.currentGroup.validate()
if (stack.currentGroup.validate()) { if (stack.currentGroup.validate()) {
if (stack.isLastGroup) { if (stack.isLastGroup) {
@ -236,4 +233,3 @@ Designer {
D{i:0;autoSize:true;height:480;width:640} D{i:0;autoSize:true;height:480;width:640}
} }
##^##*/ ##^##*/