Skip to content

Commit

Permalink
ios scan code fix - use underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
manjesh-yadav committed Jun 21, 2023
1 parent 13d7100 commit 99776a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MagicCodeInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ function MagicCodeInput(props) {
// not currently being responsible for the input, this is
// necessary to avoid calls when the input changes due to
// deleted characters. Only happens in mobile.
if (index !== editIndex || focusedIndex === undefined) {
if (index !== editIndex || _.isUndefined(focusedIndex)) {
return;
}
onChangeText(value);
Expand Down

0 comments on commit 99776a3

Please sign in to comment.