Improve: Cart clearing on success page with better state management
Use useCart.getState() to ensure we're clearing the current store state and delete IndexedDB before clearing store. Add detailed logging to help debug cart clearing issues. Ensures cart is completely emptied on checkout success.
This commit is contained in:
@@ -74,7 +74,8 @@
|
||||
"Bash(git commit -m 'Improve: Design specification sheet now shows previews and info *)",
|
||||
"Bash(git commit -m 'Fix: Handle undefined designElements in design spec SVG rendering *)",
|
||||
"Bash(git commit -m 'Fix: Ensure cart is completely cleared after payment success *)",
|
||||
"Bash(git commit -m 'Fix: Update order status to PAID on checkout success page *)"
|
||||
"Bash(git commit -m 'Fix: Update order status to PAID on checkout success page *)",
|
||||
"Bash(git commit -m 'Improve: Cart clearing on success page with better state management *)"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user