From 03310dea90cd2cb7b61089baa6f6df84cd2c9fab Mon Sep 17 00:00:00 2001 From: alaca Date: Wed, 25 Oct 2023 09:58:14 +0200 Subject: [PATCH] fix: donate button --- .../resources/js/form-builder/src/settings/design/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FormBuilder/resources/js/form-builder/src/settings/design/index.tsx b/src/FormBuilder/resources/js/form-builder/src/settings/design/index.tsx index c337280cf7..31362dd8f5 100644 --- a/src/FormBuilder/resources/js/form-builder/src/settings/design/index.tsx +++ b/src/FormBuilder/resources/js/form-builder/src/settings/design/index.tsx @@ -76,7 +76,7 @@ const FormDesignSettings = () => { label={__('Button caption', 'give')} value={donateButtonCaption} onChange={(donateButtonCaption) => { - dispatch(setFormSettings({primaryColor})); + dispatch(setFormSettings({donateButtonCaption})); publishSettings({donateButtonCaption}); }} help={__('Enter the text you want to display on the donation button.', 'give')}