-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HIGH] [P2P ACTIVATION] Preview component for pending payment is incorrect #30034
Comments
Triggered auto assignment to @alexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Preview component for pending payment is incorrect. What is the root cause of that problem?the root cause is in this function: App/src/components/ReportActionItem/MoneyRequestPreview.js Lines 193 to 221 in 219d29d
What changes do you think we should make in order to solve the problem?we should change the function logic here as follow: if (isExpensifyCardTransaction) {
let message ='';
if (TransactionUtils.isPending(props.transaction)) {
const firstname = ReportUtils.getDisplayNameForParticipant(managerID, true);
message = firstname;
message += `${props.translate('iou.paid')} (${props.translate('iou.pending')})`;
}
else {
message = props.translate('iou.card');
}
return message;
}
let message ='';
if (ReportUtils.isControlPolicyExpenseReport(props.iouReport) && ReportUtils.isReportApproved(props.iouReport) && !ReportUtils.isSettled(props.iouReport)) {
message = `${props.translate('iou.cash')} • ${props.translate('iou.approved')}`;
} else if (props.iouReport.isWaitingOnBankAccount) {
const firstname = ReportUtils.getDisplayNameForParticipant(managerID, true);
message = firstname;
message += `${props.translate('iou.paid')} (${props.translate('iou.pending')})`;
}
return message; What alternative solutions did you explore? (Optional) |
NVM, per this convo I am closing |
See slack thread
Coming from #29430
the preview component header is not using the correct format. It should say
%firstName% paid (pending)
(first screenshot), rather than using the dot separator shown in-app right now (second screenshot).The text was updated successfully, but these errors were encountered: