Skip to content

Commit 462b7cb

Browse files
committed
Wipe out customer-section on logout success page
1 parent 00066c1 commit 462b7cb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • view/frontend/templates/script/component/customer

view/frontend/templates/script/component/customer/logout.phtml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ if ($timeout < 1) {
3030
redirectUrl: '<?= $escaper->escapeUrl($block->getUrl()) ?>',
3131
timeout: <?= (int)$timeout ?>,
3232
init() {
33+
Alpine.store('LokiLocalStorage').remove('customer');
34+
3335
this.prefetch();
3436

3537
const interval = setInterval(() => {

0 commit comments

Comments
 (0)