1 parent 0c5adb8 commit 3a59470Copy full SHA for 3a59470
1 file changed
src/pages/Onboarding.jsx
@@ -23,7 +23,8 @@ export default function Onboarding() {
23
medical_license: '', specialisation: ''
24
});
25
26
- const webhookUrl = `${API_BASE_URL}/webhook/apple-health?user_email=${user?.email?.toLowerCase()}`;
+ const baseUrl = API_BASE_URL.trim().replace(/\/$/, "");
27
+ const webhookUrl = `${baseUrl}/webhook/apple-health?user_email=${user?.email?.toLowerCase()}`.replace(/\s/g, '');
28
29
const copyToClipboard = async () => {
30
try {
0 commit comments