fix checkout total not showing correctly

This commit is contained in:
Nuwan 2025-03-13 12:17:00 +05:30
parent 488aa4c03d
commit c73e78d6e6
1 changed files with 5 additions and 4 deletions

View File

@ -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}>