Skip to content

Commit e1b80f2

Browse files
Fix: Show professional success message instead of CSV download to users
1 parent 1feb77c commit e1b80f2

File tree

1 file changed

+2
-11
lines changed
  • anymate_system/anymate_landing-page/src/components

1 file changed

+2
-11
lines changed

anymate_system/anymate_landing-page/src/components/Waitlist.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,9 @@ export default function Waitlist(){
7272

7373
const url = URL.createObjectURL(new Blob([csv], {type:'text/csv'}));
7474
setStatus('success');
75-
setMessage('Saved locally. Download CSV and import later: ');
75+
setMessage('Thanks! You\'ve been added to the waitlist. We\'ll be in touch soon!');
7676

77-
const a = document.createElement('a');
78-
a.href = url;
79-
a.download = 'anym8-waitlist.csv';
80-
a.textContent = 'Download CSV';
81-
a.style.marginLeft = '6px';
82-
83-
setTimeout(()=>{
84-
const el = document.getElementById('local-csv-link');
85-
if (el) el.appendChild(a);
86-
}, 0);
77+
// Data is saved in localStorage for admin access
8778
} catch{
8879
setStatus('error');
8980
setMessage('Something went wrong. Try again later.');

0 commit comments

Comments
 (0)