Skip to content

Commit 1b49677

Browse files
chore: update validation message
1 parent 57ecac6 commit 1b49677

File tree

1 file changed

+12
-1
lines changed
  • frontend-dev/src/components/AllIntegrations/Line

1 file changed

+12
-1
lines changed

frontend-dev/src/components/AllIntegrations/Line/Line.jsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,24 @@ function Line({ formFields, setFlow, flow, allIntegURL }) {
5959
}
6060
}, 300)
6161

62-
if (val !== 3) {
62+
if (val === 3 && !isNextButtonEnabled()) {
63+
setSnackbar({
64+
show: true,
65+
msg: __(
66+
'Enter a Recipient ID or Reply Token, and add a message to continue.',
67+
'bit-integrations'
68+
)
69+
})
6370
return
6471
}
6572

6673
if (lineConf?.name && isNextButtonEnabled()) {
6774
setstep(val)
6875
}
76+
77+
if (val !== 3) {
78+
return
79+
}
6980
}
7081

7182
const isNextButtonEnabled = () => {

0 commit comments

Comments
 (0)