mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
💡 Update comment for PayLaterMessaging logic
This commit is contained in:
parent
4b75622ac7
commit
540be69cc9
1 changed files with 6 additions and 1 deletions
|
@ -57,7 +57,12 @@ export const useSaveSettings = () => {
|
|||
);
|
||||
|
||||
const persistAll = useCallback( () => {
|
||||
// Executes onSave on TabPayLaterMessaging component.
|
||||
/**
|
||||
* Executes onSave on TabPayLaterMessaging component.
|
||||
*
|
||||
* Todo: find a better way for this, because it's highly unreliable
|
||||
* (it only works when the user is still on the "Pay Later Messaging" tab)
|
||||
*/
|
||||
document.getElementById( 'configurator-publishButton' )?.click();
|
||||
|
||||
persistActions.forEach( ( { key, message, action } ) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue