Skip to content

Commit

Permalink
fix button text
Browse files Browse the repository at this point in the history
merge conflicts
  • Loading branch information
luacmartins committed Aug 2, 2021
1 parent 8936678 commit 64b0f45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/CONST.js

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

3 changes: 2 additions & 1 deletion src/pages/workspace/WorkspaceCardPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,15 @@ const WorkspaceCardPage = ({
reimbursementAccount,
}) => {
const isVerifying = lodashGet(reimbursementAccount, 'achData.state', '') === BankAccount.STATE.VERIFYING;
const isPending = lodashGet(reimbursementAccount, 'achData.state', '') === BankAccount.STATE.PENDING;
const isNotAutoProvisioned = !user.isUsingExpensifyCard
&& lodashGet(reimbursementAccount, 'achData.state', '') === BankAccount.STATE.OPEN;
let buttonText;
if (user.isFromPublicDomain) {
buttonText = translate('workspace.card.addEmail');
} else if (user.isUsingExpensifyCard) {
buttonText = translate('workspace.card.manageCards');
} else if (isVerifying || isNotAutoProvisioned) {
} else if (isVerifying || isPending || isNotAutoProvisioned) {
buttonText = translate('workspace.card.finishSetup');
} else {
buttonText = translate('workspace.card.getStarted');
Expand Down

0 comments on commit 64b0f45

Please sign in to comment.