hawklu212 / CPSC-455-Project

1 stars 2 forks source link

added button for and fixed clearDirections() #38

Closed justinjao closed 2 years ago

justinjao commented 2 years ago

PR Description

This is the same PR, as the one to main, just pushing it to this branch so we can easily merge for demo.

Original description: This adds a button to call clearDirections(), so we can show that we have a working action. It also fixes a bug in clearDirections, by setting the directionsArray to an empty array, rather than null, which would cause the action to blow up the page due to an exception.