const fs = require('fs');
const file = 'app/(onboarding)/onboarding/page.tsx';
let code = fs.readFileSync(file, 'utf8');

code = code.replace(
  'const btn = document.querySelector(".btn-primary:not([disabled])") as HTMLElement;\n        if (btn)(".btn-primary:not([disabled])");\n        if (btn) btn.click();',
  'const btn = document.querySelector(".btn-primary:not([disabled])") as HTMLElement;\n        if (btn) btn.click();'
);

fs.writeFileSync(file, code);
