Updated code
Some checks are pending
NPM Installation / build (16.x, ubuntu-latest) (push) Waiting to run
NPM Installation / build (16.x, windows-latest) (push) Waiting to run
NPM Installation / build (17.x, ubuntu-latest) (push) Waiting to run
NPM Installation / build (17.x, windows-latest) (push) Waiting to run
NPM Installation / build (18.x, ubuntu-latest) (push) Waiting to run
NPM Installation / build (18.x, windows-latest) (push) Waiting to run

This commit is contained in:
ROSHAN GARG 2024-11-22 13:32:25 +05:30
parent 9d10460f5b
commit 18432321b1

View File

@ -74,9 +74,18 @@ const ReviewOrder = ({
handleTabChange(e, 3)
}
} catch (error) {
console.log(error, 'error')
if (error.response.status === 422) {
Swal.fire(
'Error!',
'You are not assoicated with the Any Pd Please contact Support team',
'info',
)
} else {
Swal.fire('Something went wrong', error.message, 'error')
}
}
}
console.log('cartitems', cartItem)
return (
<Box>
@ -164,14 +173,14 @@ const ReviewOrder = ({
<TableRow>
<TableCell colSpan={7} />
<TableCell>
Total GST:<strong> {totalGST} </strong>
Total GST:<strong> {totalGST.fixedTo(2)} </strong>
</TableCell>
</TableRow>
<TableRow>
<TableCell colSpan={7} />
<TableCell>
Grand Total: <strong> {subtotal + totalGST}</strong>
Grand Total: <strong> {subtotal.fixedTo(2) + totalGST.fixedTo(2)}</strong>
</TableCell>
</TableRow>
</TableBody>