Skip to content

Commit

Permalink
Merge pull request #29600 from hungvu193/fix-29438
Browse files Browse the repository at this point in the history
Fix duplicate offline indicator enable payment
  • Loading branch information
robertjchen authored Oct 15, 2023
2 parents 0b06446 + 0592076 commit 5ec2e8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/EnablePayments/AdditionalDetailsStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import DatePicker from '../../components/DatePicker';
import Form from '../../components/Form';
import withCurrentUserPersonalDetails, {withCurrentUserPersonalDetailsPropTypes, withCurrentUserPersonalDetailsDefaultProps} from '../../components/withCurrentUserPersonalDetails';
import * as PersonalDetails from '../../libs/actions/PersonalDetails';
import OfflineIndicator from '../../components/OfflineIndicator';

const propTypes = {
...withLocalizePropTypes,
Expand Down Expand Up @@ -148,6 +147,7 @@ function AdditionalDetailsStep({walletAdditionalDetails, translate, currentUserP
if (!_.isEmpty(walletAdditionalDetails.questions)) {
return (
<ScreenWrapper
shouldShowOfflineIndicator={false}
style={[styles.flex1, styles.pt0]}
keyboardAvoidingViewBehavior="height"
testID={AdditionalDetailsStep.displayName}
Expand Down Expand Up @@ -243,7 +243,6 @@ function AdditionalDetailsStep({walletAdditionalDetails, translate, currentUserP
maxLength={shouldAskForFullSSN ? 9 : 4}
keyboardType={CONST.KEYBOARD_TYPE.NUMBER_PAD}
/>
<OfflineIndicator containerStyles={[styles.mh5, styles.mb3]} />
</Form>
</View>
</>
Expand Down
1 change: 1 addition & 0 deletions src/pages/EnablePayments/EnablePaymentsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function EnablePaymentsPage({userWallet}) {

return (
<ScreenWrapper
shouldShowOfflineIndicator={userWallet.currentStep !== CONST.WALLET.STEP.ONFIDO}
includeSafeAreaPaddingBottom={false}
testID={EnablePaymentsPage.displayName}
>
Expand Down

0 comments on commit 5ec2e8a

Please sign in to comment.