Skip to content

Commit

Permalink
Toogle de exito despues de actualizar todo
Browse files Browse the repository at this point in the history
  • Loading branch information
hendaniel committed Sep 7, 2020
1 parent 6fb4672 commit 05c4754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Products/Product.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ const Product = ({
const showResponseModal = () => {
redeemProduct(_id)
.then((res) => {
toggleSuccessModal();
setUserResponse(res);
setHistoryResponse(res);
setProductResponse(res);
toggleSuccessModal();
})
.catch((err) => {
toggleErrorModal();
Expand Down

0 comments on commit 05c4754

Please sign in to comment.