Skip to content

Commit

Permalink
Merge pull request #8 from bitcat365/fix/transfer
Browse files Browse the repository at this point in the history
fix transfer failed when nonce is 0
  • Loading branch information
lvshaoping007 authored Sep 1, 2021
2 parents f82cdab + 0930e95 commit 24349c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,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
}
Expand Down

0 comments on commit 24349c2

Please sign in to comment.