Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Make subheading optional (#3966)
## Because - Currently `shared/_bottom_cta.html.erb` requires a `sub_heading` to be passed. Sometimes this isn't wanted however, and to avoid errors people simply pass an empty string. This however leads to weird empty `p` elements. ## This PR - Makes `sub_heading` optional, and doesn't render anything if nothing is passed - Fixed all cases where `sub_heading` is an empty string ## Pull Request Requirements <!-- Replace the whitespace between the square brackets with an 'x', e.g. [x]. After you create the PR, they will become checkboxes that you can click on. --> - [x] I have thoroughly read and understand [The Odin Project Contributing Guide](https://github.com/TheOdinProject/theodinproject/blob/main/CONTRIBUTING.md) - [x] The title of this PR follows the `keyword: brief description of change` format, using one of the following keywords: - `Feature` - adds new or amends existing user-facing behavior - `Chore` - changes that have no user-facing value, refactors, dependency bumps, etc - `Fix` - bug fixes - [x] The `Because` section summarizes the reason for this PR - [x] The `This PR` section has a bullet point list describing the changes in this PR - [x] I have verified all tests and linters pass after making these changes. --------- Co-authored-by: Kevin Mulhern <[email protected]>
- Loading branch information