Use === over ==

This commit is contained in:
Marcus Moore 2024-11-19 16:13:53 -08:00
parent e8cad0df69
commit da4c877ed8
No known key found for this signature in database

View file

@ -340,7 +340,7 @@ class ComponentsController extends Controller
// If the checked-in qty is exactly the same as the assigned_qty, // If the checked-in qty is exactly the same as the assigned_qty,
// we can simply delete the associated components_assets record // 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(); DB::table('components_assets')->where('id', '=', $component_asset_id)->delete();
} }