Skip to content

Commit

Permalink
cast globalFluid value to boolean (WordPress#64882)
Browse files Browse the repository at this point in the history
Co-authored-by: Aki Hamano <[email protected]>
  • Loading branch information
matiasbenedetto and t-hamano authored Aug 29, 2024
1 parent 5981404 commit 924dfb3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function FontSize() {

// Whether the font size is fluid. If not defined, use the global fluid value of the theme.
const isFluid =
fontSize.fluid !== undefined ? !! fontSize.fluid : globalFluid;
fontSize.fluid !== undefined ? !! fontSize.fluid : !! globalFluid;

// Whether custom fluid values are used.
const isCustomFluid = typeof fontSize.fluid === 'object';
Expand Down

0 comments on commit 924dfb3

Please sign in to comment.