From 0930e95b01a3f8d511441f11614b385fed60ecbe Mon Sep 17 00:00:00 2001 From: lzg0321 Date: Wed, 1 Sep 2021 23:16:32 +0800 Subject: [PATCH] fix transfer failed when nonce is 0 --- src/background/api/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/background/api/index.js b/src/background/api/index.js index a16e03b9..6d11aad5 100644 --- a/src/background/api/index.js +++ b/src/background/api/index.js @@ -66,7 +66,7 @@ function _getGQLVariables(payload, signature, includeAmount = true) { variables.scalar = signature.scalar } for (let pro in variables) { - variables[pro] = String(variables[pro] || "") + variables[pro] = String(typeof variables[pro] === "undefined" ? "" : variables[pro]) } return variables }