CodeforAustralia / heritage-near-me

🔎 Heritage Near Me web app prototype
23 stars 6 forks source link

on story intro screen, photo not shown if we only have one photo #123

Closed techieshark closed 8 years ago

techieshark commented 8 years ago

For example, story 82 "making of a lake", looks like this:

image

Note that if you click the 'story' button, you'll see the photo. It just doesn't show up on the intro screen for the story.

The offending code seems to be here: https://github.com/CodeforAustralia/heritage-near-me/blob/571ddc7727684da48f482fb929d794eaff1a54ad/prototype/src/Story.elm#L141 (it says "if we are showing the intro screen and we have > 1 photos, show the slider" but it doesn't handle the case where we have exactly one photo).