Skip to content

Commit

Permalink
chore: wrong condition for toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Aug 21, 2023
1 parent 6df91ff commit c0ca601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blocks/blocks/circle-counter/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const Inspector = ({
<ToggleControl
label={ __( 'Display the Title', 'otter-blocks' ) }
checked={ 'hide' !== attributes.titleStyle }
onChange={ () => setAttributes({ titleStyle: 'default' }) }
onChange={ () => setAttributes({ titleStyle: 'hide' !== attributes.titleStyle ? 'hide' : 'default' }) }
/>

{ 'hide' !== attributes.titleStyle && (
Expand Down

0 comments on commit c0ca601

Please sign in to comment.