fix checkout total not showing correctly
This commit is contained in:
parent
488aa4c03d
commit
c73e78d6e6
|
|
@ -8,12 +8,13 @@ import Flex from '../../common/Flex';
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||||
import { useShoppingCart } from '../../../hooks/useShoppingCart';
|
import { useShoppingCart } from '../../../hooks/useShoppingCart';
|
||||||
|
|
||||||
|
|
||||||
const CheckoutAside = ({ shoppingCart}) => {
|
const CheckoutAside = ({ shoppingCart}) => {
|
||||||
const { currency } = useContext(AppContext);
|
const { currency } = useContext(AppContext);
|
||||||
const { cartTotal } = useShoppingCart();
|
const { cartTotal, getCartItems } = useShoppingCart();
|
||||||
// useEffect(() => {
|
useEffect(() => {
|
||||||
// getCartItems()
|
getCartItems()
|
||||||
// }, [])
|
}, [])
|
||||||
return (
|
return (
|
||||||
<Card>
|
<Card>
|
||||||
<FalconCardHeader title="Order Summary" titleTag="h5" light={false}>
|
<FalconCardHeader title="Order Summary" titleTag="h5" light={false}>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue