Skip to content

Commit

Permalink
Jetpack AI: fix extra spacing bug on the AI Assistant block inspector (
Browse files Browse the repository at this point in the history
…#39142)

* Fix bug that added extra spacing on the block inspector

* Changelog
  • Loading branch information
lhkowalski authored and gogdzl committed Oct 25, 2024
1 parent 702691e commit 5dcefcd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

Jetpack AI: fix bug that showed extra spacing on the AI Assistant block inspector area.
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,8 @@ export default function AIAssistantEdit( { attributes, setAttributes, clientId,
</>
);

const fairUsageNotice = (
<>{ isOverLimit && planType === PLAN_TYPE_UNLIMITED && <FairUsageNotice variant="muted" /> }</>
);
const fairUsageNotice =
isOverLimit && planType === PLAN_TYPE_UNLIMITED ? <FairUsageNotice variant="muted" /> : null;

const trackUpgradeClick = useCallback(
event => {
Expand Down

0 comments on commit 5dcefcd

Please sign in to comment.