diff --git a/helpers/getCompanyNameAndLogo.js b/helpers/getCompanyNameAndLogo.js index cd01c71..833e1dc 100644 --- a/helpers/getCompanyNameAndLogo.js +++ b/helpers/getCompanyNameAndLogo.js @@ -9,7 +9,6 @@ module.exports = async function getCompanyNameAndLogo(symbol) { ) .then(async (resp) => { let companyName = resp.data.Name; - console.log(companyName); let logoSrc = await axios.get(`https://autocomplete.clearbit.com/v1/companies/suggest?query=:${companyName.split(' ')[0]}`).then((resp) => resp.data[0].logo).catch(err => console.log(err)); return { companyName, logoSrc }; }) diff --git a/routes/api/transaction.js b/routes/api/transaction.js index 0cb9990..7353194 100644 --- a/routes/api/transaction.js +++ b/routes/api/transaction.js @@ -23,7 +23,7 @@ router.put("/confirm", ensureAuth, async (req, res) => { } ); console.log(updatedUser); - res.redirect("/"); + res.redirect("/done"); } catch (err) { console.error(err); res.render("error/500"); diff --git a/views/cart.ejs b/views/cart.ejs index 87780ae..dc7fb6c 100644 --- a/views/cart.ejs +++ b/views/cart.ejs @@ -1,7 +1,8 @@