Skip to content

Commit

Permalink
dont auto focus input if code is validated (#5244)
Browse files Browse the repository at this point in the history
  • Loading branch information
benisgold authored Dec 14, 2023
1 parent 3cdfd34 commit 57a8cb7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/screens/points/content/ReferralContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,11 @@ export default function ReferralContent() {
useFocusEffect(
useCallback(() => {
analyticsV2.track(analyticsV2.event.pointsViewedReferralScreen);
delay(600).then(() => textInputRef.current?.focus());
setGoingBack(false);
}, [])
if (status !== 'valid') {
delay(600).then(() => textInputRef.current?.focus());
}
}, [status])
);

useEffect(() => {
Expand Down

0 comments on commit 57a8cb7

Please sign in to comment.