mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-11 14:54:48 +00:00
fix(@desktop/wallet): app crash when signing token transaction with invalid password
The issue was accessing non existent property after parsing received response. That caused app crash, fixed now. Fixes: #2623
This commit is contained in:
parent
3bb5be8685
commit
4d148b5c78
@ -134,8 +134,8 @@ QtObject:
|
|||||||
discard self.status.wallet.checkRecentHistory(addresses)
|
discard self.status.wallet.checkRecentHistory(addresses)
|
||||||
|
|
||||||
proc transactionWatchResultReceived(self: TransactionsView, watchResult: string) {.slot.} =
|
proc transactionWatchResultReceived(self: TransactionsView, watchResult: string) {.slot.} =
|
||||||
let wTxRes = watchResult.parseJSON()["result"].getStr().parseJson(){"result"}
|
let wTxRes = watchResult.parseJSON()
|
||||||
if wTxRes.kind == JNull:
|
if not wTxRes.contains("result"):
|
||||||
self.checkRecentHistory()
|
self.checkRecentHistory()
|
||||||
else:
|
else:
|
||||||
discard #TODO: Ask Simon if should we show an error popup indicating the trx wasn't mined in 10m or something
|
discard #TODO: Ask Simon if should we show an error popup indicating the trx wasn't mined in 10m or something
|
||||||
|
Loading…
x
Reference in New Issue
Block a user