nss-evening-cohort-10 / nutshell-jurassic-world

7 stars 3 forks source link

Rides - Bug Fix #141

Closed maggieisgreene closed 4 years ago

maggieisgreene commented 4 years ago

User Story

As a user, I should be able to delete all of the rides from the page and still be able to see the Title of the page and the button to add new rides.

AC

WHEN the user deletes all of the rides THEN they should still see the title of the page and the Build A Ride button.

Dev Notes

Go into the ridesData.js and edit the getRides function to include an if/else statement.

After the changes are made to the data file, you will need to call the function again in the printRides function in the Rides component, so it knows to also print the There are no rides message.