dlbnco / tripby.org

Harm reduction info about psychoactive drugs with data provided by PsychonautWiki.org
https://tripby.org
23 stars 3 forks source link

Better handle arrays and check for substances' null properties #58

Closed dlbnco closed 5 years ago

dlbnco commented 5 years ago

Closes #56

This implements checks for null substance properties before rendering their respective UI components. Additionally, in the case of iterations, a check is made for whether the value is an array.

It also introduces a iteration for Substance.toxicity instead of just returning the plain array.

vercel[bot] commented 5 years ago

This pull request is automatically deployed with Now. To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://tripbyorg-git-feature-56-handle-null-properties.dlbnco.now.sh