💡 Update comment for PayLaterMessaging logic

This commit is contained in:
Philipp Stracker 2025-02-07 11:57:23 +01:00
parent 4b75622ac7
commit 540be69cc9
No known key found for this signature in database

View file

@ -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 } ) => {