Skip to content

Commit 6d1e5c3

Browse files
committed
fix: remove form submit on new message send button
1 parent 6c019b1 commit 6d1e5c3

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

web/app/pages/messages/index.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async function sendMessage() {
6767
},
6868
})
6969
notificationsStore.addNotification({
70-
message: 'Message Sent!',
70+
message: 'Message sent successfully!',
7171
type: 'success',
7272
})
7373
await router.push('/threads')
@@ -86,7 +86,7 @@ async function sendMessage() {
8686
if (data.attachments) newErrors.set('attachments', data.attachments)
8787
if (data.from) {
8888
notificationsStore.addNotification({
89-
message: data.from[0],
89+
message: data.from[0]!,
9090
type: 'error',
9191
})
9292
}
@@ -132,7 +132,7 @@ onMounted(async () => {
132132
You can also text a short code like
133133
<v-code>24273</v-code> without entering a full phone number.
134134
</p>
135-
<form @submit.prevent="sendMessage">
135+
<form>
136136
<v-phone-input
137137
v-model="formPhoneNumber"
138138
v-model:country="phoneCountry"
@@ -164,6 +164,7 @@ onMounted(async () => {
164164
:block="mdAndDown"
165165
:loading="sending"
166166
:icon="mdiSend"
167+
@click="sendMessage"
167168
>
168169
Send Message
169170
</loading-button>

0 commit comments

Comments
 (0)