Ide-Pinturerias / pinturas-app-front

Client App
2 stars 1 forks source link

Función `handleNumberChange(string)` no respeta el límite del stock cuando se hace click múltiples veces para cambiar el estado local #59

Closed Squiffles closed 5 months ago

Squiffles commented 5 months ago

En el componente <ProductQuantitySelector>, cuando se hace click en el botón para cambiar la cantidad de productos handleNumberChange("add") varias veces en poco tiempo, el estado sobrepasa la cantidad máxima y vuelve a 1.

Fixed on commit: [FIX]: Fixed handleNumberChange() delayed behaviour affecting the state by removing the setTimeout function.