I have this code
if (found === true && premium === 'active' || premium === 'trialing') {
var free = false
} else {
var free = true
}
The express server works fine on both localhost and remotely on Heroku, I tried deploying this app to firebase hosting, one the error that prevented me to deploy is
75:17 error 'free' is already defined no-redeclare
I am not sure how to fix that, my goal is simply to pass free variable with a response like so
response.render('master.html', { links, profile, free })
var freebefore theif, and inside (ifandelse) just the assignation withoutvarkeyword?