Scroll confirmation bar into view after Stripe redirect
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -214,6 +214,7 @@
|
|||||||
const numPeopleParam = params.get('num_people');
|
const numPeopleParam = params.get('num_people');
|
||||||
if (donatedParam || numPeopleParam) {
|
if (donatedParam || numPeopleParam) {
|
||||||
showConfirmation(parseInt(numPeopleParam) || 0, donatedParam ? parseFloat(donatedParam) : null);
|
showConfirmation(parseInt(numPeopleParam) || 0, donatedParam ? parseFloat(donatedParam) : null);
|
||||||
|
document.getElementById('thank-you').scrollIntoView({ behavior: 'smooth', block: 'center' });
|
||||||
history.replaceState({}, '', location.pathname);
|
history.replaceState({}, '', location.pathname);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user