Skip to content

Issue: Series Resource incorrectly displaying 'workshop' button#1637

Merged
dbenham merged 1 commit intodevfrom
fixWorkshopSeriesButton
Jul 19, 2023
Merged

Issue: Series Resource incorrectly displaying 'workshop' button#1637
dbenham merged 1 commit intodevfrom
fixWorkshopSeriesButton

Conversation

@jessewoo
Copy link
Contributor

Resources

Issue Summary

On a resource page for a series, the workshop button is showing up.

Fix Summary

In the creation of the primary buttons, there was a switch statement that was written improperly. Each case didn't have a break. Fix was adding a break to each case.

Testing

Rollout

  • Push this to stage for client testing, then production

Review

Copy link
Contributor

@dbenham dbenham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Break statements generally aren't required unless there is a chance more than one of the cases evaluates to true. Are you sure this fixed the problem?

@nkissebe
Copy link
Contributor

Code will flow from one case to the next without break. This fix looks correct, not sure how it hadn't been noticed until now.

@jessewoo
Copy link
Contributor Author

@dbenham - you can merge this

@dbenham dbenham merged commit 58e1972 into dev Jul 19, 2023
@nkissebe nkissebe deleted the fixWorkshopSeriesButton branch April 18, 2024 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments