mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-11 06:47:01 +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)
|
||||
|
||||
proc transactionWatchResultReceived(self: TransactionsView, watchResult: string) {.slot.} =
|
||||
let wTxRes = watchResult.parseJSON()["result"].getStr().parseJson(){"result"}
|
||||
if wTxRes.kind == JNull:
|
||||
let wTxRes = watchResult.parseJSON()
|
||||
if not wTxRes.contains("result"):
|
||||
self.checkRecentHistory()
|
||||
else:
|
||||
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