Why does the following work on chrome / firefox / edge:
// if (filter === "Everything") {
but then on safari it doesn’t?
Filter is a usestate that holds a category value.
I had to replace it to:
if(filter.includes("Everything")){
for it to work on all.
I was console logging the value of filter before the if statement and even though the value matched, it always triggered the else on safari/ios.
if(filter.includes("Everything")){
// if (filter === 'Everything') {