From bffe9297a6a96ead84dbffb094cde3a73e0f12ff Mon Sep 17 00:00:00 2001 From: Miguel Peixe Date: Fri, 11 Oct 2024 17:17:57 -0300 Subject: [PATCH] chore: improve docblock --- src/modal-checkout/modal.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modal-checkout/modal.js b/src/modal-checkout/modal.js index b044c12bd..667c67e82 100644 --- a/src/modal-checkout/modal.js +++ b/src/modal-checkout/modal.js @@ -130,7 +130,11 @@ domReady( () => { iframe.addEventListener( 'load', handleIframeReady ); /** - * Generate cart. + * Generate cart via ajax. + * + * This strategy, used for anonymous users, addresses an edge case in which + * the session for a newly registered reader fails to carry the cart over to + * the checkout. * * @return {Promise} The promise that resolves with the checkout URL. */