Remove console.log stuff

main
Ashelyn Dawn 4 years ago
parent 6fefbb3417
commit 8e839b16f2

@ -13,6 +13,5 @@ config.getLatestConfig = async () => {
config.getTaxRate = async () => { config.getTaxRate = async () => {
const current = await config.getLatestConfig() const current = await config.getLatestConfig()
console.log(parseFloat(current.default_tax_percent))
return parseFloat(current.default_tax_percent) return parseFloat(current.default_tax_percent)
} }

@ -13,8 +13,6 @@ CategoryList.getInitialProps = async ({ctx}) => {
} }
export default function CategoryList({categories}) { export default function CategoryList({categories}) {
console.log(categories)
return ( return (
<> <>
<ActionBar title="Categories"> <ActionBar title="Categories">

@ -9,8 +9,6 @@ import styles from './style.module.css'
Category.getInitialProps = async function({ctx: {axios, query: {slug}}}){ Category.getInitialProps = async function({ctx: {axios, query: {slug}}}){
const {data: category} = await axios.get(`/api/categories/by-slug/${slug}`) const {data: category} = await axios.get(`/api/categories/by-slug/${slug}`)
console.log(category)
if(!category) { if(!category) {
const err = new Error("Not found") const err = new Error("Not found")
err.status = 404 err.status = 404

Loading…
Cancel
Save