correct optin enabled check

[MAILPOET-3920]
This commit is contained in:
Mike Jolley
2021-11-03 15:53:04 +00:00
committed by Veljko V
parent 72d4db26e3
commit cdd14dbf9f

View File

@@ -54,7 +54,7 @@ export const Edit = ({
const currentText = text || defaultText; const currentText = text || defaultText;
return ( return (
<div {...blockProps}> <div {...blockProps}>
{!optinEnabled ? ( {optinEnabled ? (
<> <>
<div className="wc-block-checkout__newsletter"> <div className="wc-block-checkout__newsletter">
<CheckboxControl id="subscribe-to-newsletter" checked={false} /> <CheckboxControl id="subscribe-to-newsletter" checked={false} />