Skip to content

Commit

Permalink
Update Number.php
Browse files Browse the repository at this point in the history
  • Loading branch information
alecritson committed Sep 30, 2024
1 parent e94c4f4 commit 3b1b6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/FieldTypes/Number.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function setValue($value)
throw new FieldTypeException(self::class.' value must be numeric.');
}

$this->value = $value + 0;
$this->value = $value ? $value + 0 : '';
}

/**
Expand Down

0 comments on commit 3b1b6af

Please sign in to comment.