From 13d71002c54d19dbba696e1935066bbcb7bc829a Mon Sep 17 00:00:00 2001 From: Manjesh yadav Date: Wed, 21 Jun 2023 15:07:05 +0530 Subject: [PATCH 1/2] ios scan code fix --- src/components/MagicCodeInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/MagicCodeInput.js b/src/components/MagicCodeInput.js index 4caa7328b92c..67f538cd877a 100644 --- a/src/components/MagicCodeInput.js +++ b/src/components/MagicCodeInput.js @@ -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) { + if (index !== editIndex || focusedIndex === undefined) { return; } onChangeText(value); From 99776a39aba2a623fe57d2187db08720f5eccd37 Mon Sep 17 00:00:00 2001 From: Manjesh yadav Date: Wed, 21 Jun 2023 18:19:33 +0530 Subject: [PATCH 2/2] ios scan code fix - use underscore --- src/components/MagicCodeInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/MagicCodeInput.js b/src/components/MagicCodeInput.js index 67f538cd877a..8af0c9bdab35 100644 --- a/src/components/MagicCodeInput.js +++ b/src/components/MagicCodeInput.js @@ -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);