Skip to content

Commit

Permalink
✅ onPartSelected is wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
arunachalam-monk committed Jul 26, 2024
1 parent ef1798d commit b824dd1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function VehiclePartSelection({
? selectedParts.filter((p) => p !== part)
: [...selectedParts, part];
setSelectedParts(newSelectedParts);
onPartsSelected(selectedParts);
onPartsSelected(newSelectedParts);
};
const getPartAttributes: VehicleDynamicWireframeProps['getPartAttributes'] = (
part: VehiclePart,
Expand Down

0 comments on commit b824dd1

Please sign in to comment.