Skip to content

Commit

Permalink
fix duplicate offline indicator enable payment
Browse files Browse the repository at this point in the history
  • Loading branch information
hungvu193 committed Oct 14, 2023
1 parent fe282b4 commit 0592076
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 0592076

Please sign in to comment.