Skip to content

Commit

Permalink
Fix the shortcode for the calculator output (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
dingo-d authored May 7, 2024
1 parent 993065a commit c8cd603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Shortcode/ResultOutputItemPart.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function callback(array $atts, string $content): string

$name = isset($params['name']) ? \esc_html($params['name']) : '';

if (!$name || !$content) {
if ($name === '') {
return '';
}

Expand Down

0 comments on commit c8cd603

Please sign in to comment.