livgust / macovidvaccines.com

macovidvaccines.com
MIT License
38 stars 20 forks source link

Use "massVax" flag from back-end #161

Closed harcod closed 3 years ago

harcod commented 3 years ago

After PR #160 is approved and back-end PR #161 is approved...

Update appointmentData.service.js to read flag provided by the is a back-end PR #161 that need to be approved that is related to this issue.

appointmentData.service.js currently checks for Curative.com and Color.com URLs to determine this.

    const isMassVax =
        entry.signUpLink?.includes("color.com") ||
        entry.signUpLink?.includes("curative.com");

Once the back-end is updated, this can be changed to use the entry.massVax boolean (which may be undefined)