Use save method in Update button
[MAILPOET-4462]
This commit is contained in:
@ -36,13 +36,13 @@ function ActivateButton(): JSX.Element {
|
||||
}
|
||||
|
||||
function UpdateButton(): JSX.Element {
|
||||
const { activate } = useDispatch(storeName);
|
||||
const { save } = useDispatch(storeName);
|
||||
|
||||
return (
|
||||
<Button
|
||||
variant="primary"
|
||||
className="editor-post-publish-button"
|
||||
onClick={activate}
|
||||
onClick={save}
|
||||
>
|
||||
{__('Update', 'mailpoet')}
|
||||
</Button>
|
||||
|
Reference in New Issue
Block a user