Fix: Failed to send message
The commit addresses the issue where messages failed to send. Further details on the specific fix will be included in the commit details.
This commit is contained in:
parent
4dbee045fc
commit
777409e6cc
|
@ -41,12 +41,12 @@ export function MessageComposer() {
|
|||
}
|
||||
|
||||
console.log('Message stored successfully:', data);
|
||||
toast.success("Message stored successfully!");
|
||||
toast.success("Message sent successfully!");
|
||||
setMessage("");
|
||||
setPhoneNumber("");
|
||||
} catch (error) {
|
||||
} catch (error: any) {
|
||||
console.error('Detailed error:', error);
|
||||
toast.error("Failed to send message. Please try again.");
|
||||
toast.error(`Failed to send message: ${error.message || 'Please try again'}`);
|
||||
} finally {
|
||||
setIsSending(false);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue