diff --git a/app/Models/Benefit.php b/app/Models/Benefit.php index 4cdaebf8..9c789ff9 100644 --- a/app/Models/Benefit.php +++ b/app/Models/Benefit.php @@ -134,7 +134,7 @@ class Benefit extends Model public function setAreaLimitAttribute($value) { - $this->attributes['area_limit'] = $value ? $value : null; + $this->attributes['area_limit'] = empty($value) ? null : $value; } public function setPrePostTreatmentAttribute($value)