Skip to content

Commit

Permalink
Restrict boostLevel type in decideCardProp
Browse files Browse the repository at this point in the history
  • Loading branch information
Georges-GNM committed Oct 10, 2024
1 parent 701a6a4 commit 3f23caf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotcom-rendering/src/components/FlexibleGeneral.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ type BoostedCardProperties = {
* Boosting a standard card will affect the layout and style of the card. This function will determine the properties of the card based on the boost level.
*/
const decideCardProperties = (
boostLevel: BoostLevel = 'boost',
boostLevel: Omit<BoostLevel, 'default' | 'gigaboost'> = 'boost',
): BoostedCardProperties => {
switch (boostLevel) {
case 'megaboost':
Expand Down

0 comments on commit 3f23caf

Please sign in to comment.