diff --git a/src/OnboardingSPA/components/LivePreview/SelectableCard/index.js b/src/OnboardingSPA/components/LivePreview/SelectableCard/index.js index e557de095..3b21ee4c3 100644 --- a/src/OnboardingSPA/components/LivePreview/SelectableCard/index.js +++ b/src/OnboardingSPA/components/LivePreview/SelectableCard/index.js @@ -21,22 +21,16 @@ const SelectableCard = ( { className={ `${ className }` } role="button" tabIndex={ 0 } - onClick={ - typeof onClick === 'function' && - ( () => { - if ( ! loadingParent ) { - onClick(); - } - } ) - } - onKeyDown={ - typeof onClick === 'function' && - ( () => { - if ( ! loadingParent ) { - onClick(); - } - } ) - } + onClick={ () => { + if ( ! loadingParent && typeof onClick === 'function' ) { + onClick(); + } + } } + onKeyDown={ () => { + if ( ! loadingParent && typeof onClick === 'function' ) { + onClick(); + } + } } >