updated category check control

This commit is contained in:
Cihan Şentürk 2025-02-27 13:12:50 +03:00 committed by GitHub
parent a8adeff326
commit 811076afcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ class Category extends Form
return $category->id === $category_id;
});
if (! $has_category) {
if ($has_category === false) {
$category = Model::find($category_id);
$this->categories->push($category);
@ -68,7 +68,7 @@ class Category extends Form
return $category->id === $selected_category_id;
});
if (! $has_selected_category) {
if ($has_selected_category === false) {
$this->categories->push($selected_category);
}
}