Skip to content

Commit

Permalink
Make the toggle state name a bit more descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldudzic committed Dec 17, 2024
1 parent f32f30e commit 44e79f6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PaymentMethodIcon from '../PaymentMethodIcon';
import data from '../../../utils/data';

const PaymentMethodItemBlock = ( props ) => {
const [ isChecked, setIsChecked ] = useState( false );
const [ toggleIsChecked, setToggleIsChecked ] = useState( false );
const [ modalIsVisible, setModalIsVisible ] = useState( false );
const Modal = props?.modal;

Expand All @@ -28,8 +28,8 @@ const PaymentMethodItemBlock = ( props ) => {
<div className="ppcp-r-settings-block__payment-methods__item__footer">
<ToggleControl
__nextHasNoMarginBottom={ true }
checked={ isChecked }
onChange={ setIsChecked }
checked={ toggleIsChecked }
onChange={ setToggleIsChecked }
/>
{ Modal && (
<div
Expand Down

0 comments on commit 44e79f6

Please sign in to comment.