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:
Ian Gulliver
2026-01-03 21:21:39 -08:00
parent e57c2cf4a9
commit acb98238d7

View File

@@ -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);
} }