File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- export const API_BASE_URL = import . meta. env . VITE_API_URL || 'http://127.0.0.1:5001' ;
1+ export const API_BASE_URL = ( import . meta. env . VITE_API_URL || 'http://127.0.0.1:5001' ) . trim ( ) ;
22
33// Strips markdown link formatting e.g. "[a@b.com](mailto:a@b.com)" → "a@b.com"
44export function cleanEmail ( raw ) {
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ export default function Onboarding() {
2323 medical_license : '' , specialisation : ''
2424 } ) ;
2525
26- const baseUrl = API_BASE_URL . trim ( ) . replace ( / \/ $ / , "" ) ;
27- const webhookUrl = ` ${ baseUrl } /webhook/apple-health?user_email=${ user ?. email ?. toLowerCase ( ) } ` . replace ( / \s / g, '' ) ;
26+ const baseUrl = API_BASE_URL . replace ( / \/ $ / , "" ) . trim ( ) ;
27+ const webhookUrl = ( baseUrl + " /webhook/apple-health?user_email=" + ( user ?. email ?. toLowerCase ( ) || "" ) ) . replace ( / \s / g, "" ) ;
2828
2929 const copyToClipboard = async ( ) => {
3030 try {
You can’t perform that action at this time.
0 commit comments