Skip to content

Commit

Permalink
fix: second parameter of map deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
imOscarCrespo committed Aug 26, 2019
1 parent a6f9bae commit de7b9e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/botonic-react/src/webchat/webchat.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export const Webchat = forwardRef((props, ref) => {
const checkBlockInput = input => {
if (!Array.isArray(props.blockInputs)) return
for (let rule of props.blockInputs) {
if (rule.match.some((regex, m) => regex.test(input.data))) {
if (rule.match.some(regex => regex.test(input.data))) {
addMessageComponent(
<Text
id={input.id}
Expand Down

0 comments on commit de7b9e8

Please sign in to comment.