mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-31 00:36:19 +00:00
handle cases where the id is nil
This commit is contained in:
parent
0fa9064481
commit
0b4c465f51
@ -188,7 +188,7 @@ QtObject:
|
||||
"error": errorMessage,
|
||||
"result": {
|
||||
"jsonrpc": "2.0",
|
||||
"id": data.payload.id,
|
||||
"id": if data.payload.id == nil: newJNull() else: data.payload.id,
|
||||
"result": if (success): response else: ""
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user