Skip to content

Commit

Permalink
Bug Fixes in Cart.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fabcodingzest committed Aug 24, 2020
1 parent b445b0e commit 32ae0ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routes/api/cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ router.post("/buy", ensureAuth, async (req, res) => {
const symbol = req.body.companySymbol;
const { latestPrice } = await getPrice(symbol);
const noOfStock = req.body.noOfStock;
const stockPrice = req.body.stockPrice;
const totalAmount = parseFloat(latestPrice * noOfStock).toFixed(4);

const data = {
Expand Down

0 comments on commit 32ae0ad

Please sign in to comment.