From 924dfb3870eb1eab3f4dbfc0746c181528ea68c6 Mon Sep 17 00:00:00 2001 From: Matias Benedetto Date: Thu, 29 Aug 2024 10:13:48 -0300 Subject: [PATCH] cast globalFluid value to boolean (#64882) Co-authored-by: Aki Hamano <54422211+t-hamano@users.noreply.github.com> --- .../src/components/global-styles/font-sizes/font-size.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/global-styles/font-sizes/font-size.js b/packages/edit-site/src/components/global-styles/font-sizes/font-size.js index eec86acb8533f4..25ff6812d583c9 100644 --- a/packages/edit-site/src/components/global-styles/font-sizes/font-size.js +++ b/packages/edit-site/src/components/global-styles/font-sizes/font-size.js @@ -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';