Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtus7 committed Oct 3, 2023
1 parent f2a47aa commit d50aae2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/MagicCodeInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function MagicCodeInput(props) {

useEffect(() => {
lastValue.current = input.length;
}, [input])
}, [input]);

const blurMagicCodeInput = () => {
inputRefs.current.blur();
Expand Down Expand Up @@ -212,7 +212,7 @@ function MagicCodeInput(props) {
return;
}

const addedValue = value.slice(lastValue.current.length, value.length) || value
const addedValue = value.slice(lastValue.current.length, value.length) || value;
lastValue.current = value;
// Updates the focused input taking into consideration the last input
// edited and the number of digits added by the user.
Expand Down Expand Up @@ -330,7 +330,7 @@ function MagicCodeInput(props) {
autoComplete={input.length === 0 && props.autoComplete}
keyboardType={CONST.KEYBOARD_TYPE.NUMBER_PAD}
onChangeText={(value) => {
onChangeText(value)
onChangeText(value);
}}
onKeyPress={onKeyPress}
onFocus={onFocus}
Expand Down

0 comments on commit d50aae2

Please sign in to comment.