amosproj / amos2021ss08-carbon-footprint

AMOS Project 8 - Carbon Footprint
MIT License
6 stars 2 forks source link

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

Open MartinDuersch opened 3 years ago

MartinDuersch commented 3 years ago

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
Waldleufer commented 3 years ago

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