amosproj/amos2021ss08-carbon-footprint

Details Page crashes if no product has been chosen before (dev-#39)

Opened this issue · 1 comments

Description

Happens on dev-#39 when going directly to Details page from Login

Expected Behavior

Show a "pls select a product" screen

Actual Behavior

Page crashes at SelectScenarioComponent.jsx:55 (secondaryScenarioList.length)

Possible Fix

Steps to Reproduce

  1. Login
  2. Click Details

Well in the current state the page doesn't crash, but just will display an infinite Loading Animation. So this could certainly be improved! 😄