fix: 💸 Change taxes to 8.9% (Antonito)

This commit is contained in:
Keith Irwin 2023-09-14 22:02:59 -06:00
parent 8dcc84755e
commit 3590ee40c5
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ class Cart { constructor() {
// Sales tax
self.tax = ko.pureComputed(() => {
// Set tax rates here
if (self.state()==='CO') return 0.049
if (self.state()==='CO') return 0.089
else return 0
})
self.tax_pretty = ko.pureComputed(() => {

View File

@ -110,7 +110,7 @@ module.exports = async (req, res) => {
const taxesPromise = new Promise((resolve, reject) => {
if (!order.shipping.address.state) reject(`order.shipping.address.state not provided!`)
let tax = 0
if (order.shipping.address.state==='CO') tax = 0.049
if (order.shipping.address.state==='CO') tax = 0.089
else tax = 0
if (tax===order.tax) resolve(tax)
else reject(`Taxes calculated as ${tax} didn't match what was sent by the client (${order.tax})`)