From da4c877ed8b75c8f9bc92218dd1d57b64c5d7a68 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Tue, 19 Nov 2024 16:13:53 -0800 Subject: [PATCH] Use === over == --- app/Http/Controllers/Api/ComponentsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/ComponentsController.php b/app/Http/Controllers/Api/ComponentsController.php index 93ad101ff8..cd1e31f961 100644 --- a/app/Http/Controllers/Api/ComponentsController.php +++ b/app/Http/Controllers/Api/ComponentsController.php @@ -340,7 +340,7 @@ class ComponentsController extends Controller // If the checked-in qty is exactly the same as the assigned_qty, // we can simply delete the associated components_assets record - if ($qty_remaining_in_checkout == 0) { + if ($qty_remaining_in_checkout === 0) { DB::table('components_assets')->where('id', '=', $component_asset_id)->delete(); }