Skip to content

Commit

Permalink
Merge pull request #3873 from Expensify/joel_tierName
Browse files Browse the repository at this point in the history
Using new parameter name
  • Loading branch information
madmax330 authored Jul 14, 2021
2 parents f1ea424 + 3b2f6e9 commit bb5ae3e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/CONST.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/libs/actions/BankAccounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ function activateWallet(currentStep, parameters) {
* @property {Number} availableBalance
* @property {Number} currentBalance
* @property {String} currentStep - used to track which step of the "activate wallet" flow a user is in
* @property {('SILVER'|'GOLD')} status - will be GOLD when fully activated. SILVER is able to recieve funds only.
* @property {('SILVER'|'GOLD')} tierName - will be GOLD when fully activated. SILVER is able to recieve funds only.
*/
function fetchUserWallet() {
API.Get({returnValueList: 'userWallet'})
Expand Down
4 changes: 2 additions & 2 deletions src/pages/EnablePayments/ActivateStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const ActivateStep = props => (
onCloseButtonPress={() => Navigation.dismissModal()}
/>
<View style={[styles.mh5, styles.flex1]}>
{props.userWallet.status === CONST.WALLET.STATUS.GOLD && (
{props.userWallet.tierName === CONST.WALLET.TIER_NAME.GOLD && (
<Text>{props.translate('activateStep.activated')}</Text>
)}
{props.userWallet.status === CONST.WALLET.STATUS.SILVER && (
{props.userWallet.tierName === CONST.WALLET.TIER_NAME.SILVER && (
<Text>{props.translate('activateStep.checkBackLater')}</Text>
)}
</View>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/EnablePayments/userWalletPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export default {
currentStep: PropTypes.string,

/** Status of wallet - e.g. SILVER or GOLD */
status: PropTypes.string,
tierName: PropTypes.string,
}),
};

0 comments on commit bb5ae3e

Please sign in to comment.