From 8e839b16f27c71851616a9aef629420e28a2bcf0 Mon Sep 17 00:00:00 2001 From: Ashelyn Dawn Date: Sat, 28 Nov 2020 01:14:55 -0700 Subject: [PATCH] Remove console.log stuff --- db/models/config.js | 1 - pages/admin/categories/index.js | 2 -- pages/store/category/[slug].js | 2 -- 3 files changed, 5 deletions(-) diff --git a/db/models/config.js b/db/models/config.js index 4d439a7..71f9785 100644 --- a/db/models/config.js +++ b/db/models/config.js @@ -13,6 +13,5 @@ config.getLatestConfig = async () => { config.getTaxRate = async () => { const current = await config.getLatestConfig() - console.log(parseFloat(current.default_tax_percent)) return parseFloat(current.default_tax_percent) } diff --git a/pages/admin/categories/index.js b/pages/admin/categories/index.js index f4095fa..b6b3148 100644 --- a/pages/admin/categories/index.js +++ b/pages/admin/categories/index.js @@ -13,8 +13,6 @@ CategoryList.getInitialProps = async ({ctx}) => { } export default function CategoryList({categories}) { - console.log(categories) - return ( <> diff --git a/pages/store/category/[slug].js b/pages/store/category/[slug].js index 05d04d7..3f767d2 100644 --- a/pages/store/category/[slug].js +++ b/pages/store/category/[slug].js @@ -9,8 +9,6 @@ import styles from './style.module.css' Category.getInitialProps = async function({ctx: {axios, query: {slug}}}){ const {data: category} = await axios.get(`/api/categories/by-slug/${slug}`) - console.log(category) - if(!category) { const err = new Error("Not found") err.status = 404