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