diff --git a/packages/Sarga/API/Http/Resources/Catalog/Suggestion.php b/packages/Sarga/API/Http/Resources/Catalog/Suggestion.php index 24285d772..c23fed6cb 100644 --- a/packages/Sarga/API/Http/Resources/Catalog/Suggestion.php +++ b/packages/Sarga/API/Http/Resources/Catalog/Suggestion.php @@ -18,7 +18,7 @@ class Suggestion extends JsonResource 'id' => $this->product_id ?? $this->id, 'type' => $this->suggestion_type, 'name' => $this->name, - $this->mergeWhen($this->suggestion_type != 'product',['description' => $this->description]) + $this->mergeWhen($this->suggestion_type === 'category',['description' => $this->description]) ]; }