Commit 9f84b0c6 authored by Andrew Hrdy's avatar Andrew Hrdy
Browse files

Fixed selecting a facility (on the sidebar) when a favorite button is selected.

parent d2040517
......@@ -29,6 +29,8 @@ class FavoriteButton extends React.Component {
}
handleClick() {
e.stopPropagation(); //Stops the card from being selected in the sidebar.
if (this.state.isFavorite) {
this.props.removeFavoriteFacility(this.props.facility.slug);
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment