feat: Implement unspecified changes

The commit implements unspecified changes based on the prompt.  No further details are available.
This commit is contained in:
gpt-engineer-app[bot] 2025-02-26 22:36:57 +00:00
parent c4d3c70f8c
commit e360003061

View file

@ -41,27 +41,12 @@ export function MessageComposer() {
}
console.log('Message stored successfully:', data);
// Call the Edge Function to send SMS
const { data: smsResponse, error: smsError } = await supabase.functions.invoke('send-sms', {
body: {
phoneNumber: formattedPhoneNumber,
message: message
}
});
if (smsError) {
console.error('SMS sending error:', smsError);
throw smsError;
}
console.log('SMS sent successfully:', smsResponse);
toast.success("Message sent successfully!");
toast.success("Message stored successfully!");
setMessage("");
setPhoneNumber("");
} catch (error: any) {
console.error('Detailed error:', error);
toast.error(`Failed to send message: ${error.message || 'Please try again'}`);
toast.error(`Failed to store message: ${error.message || 'Please try again'}`);
} finally {
setIsSending(false);
}