Skip to content

Commit c9544ed

Browse files
addshoremaxlath
authored andcommitted
claim update: Allow newValue of 0
1 parent 64d18b3 commit c9544ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/claim/update.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default async (params, config, API) => {
4545

4646
if (rank) simplifiedClaim.rank = rank
4747

48-
if (newValue) {
48+
if (newValue != null) {
4949
if (newValue.snaktype && newValue.snaktype !== 'value') {
5050
simplifiedClaim.snaktype = newValue.snaktype
5151
delete simplifiedClaim.value

0 commit comments

Comments
 (0)