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