fix(@desktop/wallet): app crash when click on sign and send message

A reason why the crash is happening is actually previous step, when an user who is about to receive
a transaction clicks "confirm and share address" button. In that moment instead of his address an
empty js object is shared. After that clicking on the "sign and send" button, by sender, causes an
app crash because transaction cannot be made using invalid address of the recipient.

Fixes: #2718
This commit is contained in:
Sale Djenic 2021-07-06 19:41:28 +02:00 committed by Iuri Matias
parent 9e58563fcf
commit eb7809ecdf
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ Item {
SelectAccountModal {
id: selectAccountModal
onSelectAndShareAddressButtonClicked: {
chatsModel.transactions.acceptAddressRequest(messageId, accountSelector.selectedAccount)
chatsModel.transactions.acceptAddressRequest(messageId, accountSelector.selectedAccount.address)
selectAccountModal.close()
}
}