Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

Fix ticket quantity selection component

Dave Earley4dbed923243f
diff --git a/frontend/src/components/common/NumberSelector/index.tsx b/frontend/src/components/common/NumberSelector/index.tsx
index aab849fa4..02890e26a 100644
--- a/frontend/src/components/common/NumberSelector/index.tsx
+++ b/frontend/src/components/common/NumberSelector/index.tsx
@@ -22,10 +22,7 @@ export const NumberSelector = ({formInstance, fieldName, min, max}: NumberSelect
const maxValue = max || 100;
useEffect(() => {
- // Only synchronize with form if the value is within bounds and not 0
- if (value !== 0) {
- formInstance.setFieldValue(fieldName, value);
- }
+ formInstance.setFieldValue(fieldName, value);
}, [value]);
useEffect(() => {