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 { useShoppingCart } from '../../../hooks/useShoppingCart';
|
||||
|
||||
|
||||
const CheckoutAside = ({ shoppingCart}) => {
|
||||
const { currency } = useContext(AppContext);
|
||||
const { cartTotal } = useShoppingCart();
|
||||
// useEffect(() => {
|
||||
// getCartItems()
|
||||
// }, [])
|
||||
const { cartTotal, getCartItems } = useShoppingCart();
|
||||
useEffect(() => {
|
||||
getCartItems()
|
||||
}, [])
|
||||
return (
|
||||
<Card>
|
||||
<FalconCardHeader title="Order Summary" titleTag="h5" light={false}>
|
||||
|
|
|
|||
Loading…
Reference in New Issue