Skip to content

Commit

Permalink
fix: update validation for address number
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiano-mallmann committed Nov 13, 2024
1 parent f6e97f1 commit 7ed4c62
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function setNumber($number)

$this->number = substr($numberWithoutLineBreaks, 0, 15);

if (!empty($this->number) && !is_numeric(trim($this->number))) {
if (empty(trim($this->number))) {
$inputName = $this->i18n->getDashboard('number');
$message = $this->i18n->getDashboard(
"The %s should not be empty!",
Expand Down

0 comments on commit 7ed4c62

Please sign in to comment.