4
0
forked from crowetic/commerce
This commit is contained in:
okbel
2021-01-19 11:07:40 -03:00
parent d03df631ce
commit 017218c155
3 changed files with 10 additions and 6 deletions

View File

@@ -15,13 +15,14 @@ const CartSidebarView: FC = () => {
const { price: subTotal } = usePrice(
data && {
amount: data.base_amount,
amount: data.subTotal,
currencyCode: data.currency?.code || 'USD',
}
)
const { price: total } = usePrice(
data && {
amount: data.cart_amount,
amount: data.total,
currencyCode: data.currency?.code || 'USD',
}
)