Skip to content

Commit

Permalink
Merge pull request #24386 from Nodebrute/iouconsole
Browse files Browse the repository at this point in the history
iou console fix
  • Loading branch information
deetergp authored Aug 14, 2023
2 parents 3d4a554 + cb57991 commit 7ea8f5c
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/components/ReportActionItem/TaskPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import personalDetailsPropType from '../../pages/personalDetailsPropType';

const propTypes = {
/** All personal details asssociated with user */
personalDetailsList: personalDetailsPropType,
personalDetailsList: PropTypes.objectOf(personalDetailsPropType),

/** The ID of the associated taskReport */
taskReportID: PropTypes.string.isRequired,
Expand Down
11 changes: 0 additions & 11 deletions src/libs/actions/IOU.js
Original file line number Diff line number Diff line change
Expand Up @@ -1335,12 +1335,6 @@ function getPayMoneyRequestParams(chatReport, iouReport, recipient, paymentMetho
iouReport.reportID,
true,
);
const optimisticPersonalDetailsListAction = {
accountID: Number(recipient.accountID),
avatar: UserUtils.getDefaultAvatarURL(Number(recipient.accountID)),
displayName: recipient.displayName || recipient.login,
login: recipient.login,
};

const optimisticReportPreviewAction = ReportUtils.updateReportPreview(iouReport, ReportActionsUtils.getReportPreviewAction(chatReport.reportID, iouReport.reportID));

Expand Down Expand Up @@ -1396,11 +1390,6 @@ function getPayMoneyRequestParams(chatReport, iouReport, recipient, paymentMetho
key: ONYXKEYS.NVP_LAST_PAYMENT_METHOD,
value: {[iouReport.policyID]: paymentMethodType},
},
{
onyxMethod: Onyx.METHOD.MERGE,
key: ONYXKEYS.PERSONAL_DETAILS_LIST,
value: optimisticPersonalDetailsListAction,
},
];

const successData = [
Expand Down
2 changes: 1 addition & 1 deletion src/pages/NewChatPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const propTypes = {
betas: PropTypes.arrayOf(PropTypes.string),

/** All of the personal details for everyone */
personalDetails: personalDetailsPropType,
personalDetails: PropTypes.objectOf(personalDetailsPropType),

/** All reports shared with the user */
reports: PropTypes.objectOf(reportPropTypes),
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ReportParticipantsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const propTypes = {
/* Onyx Props */

/** The personal details of the person who is logged in */
personalDetails: personalDetailsPropType,
personalDetails: PropTypes.objectOf(personalDetailsPropType),

/** The active report */
report: reportPropTypes.isRequired,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/SearchPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const propTypes = {
betas: PropTypes.arrayOf(PropTypes.string),

/** All of the personal details for everyone */
personalDetails: personalDetailsPropType,
personalDetails: PropTypes.objectOf(personalDetailsPropType),

/** All reports shared with the user */
reports: PropTypes.objectOf(reportPropTypes),
Expand Down
2 changes: 1 addition & 1 deletion src/pages/tasks/TaskAssigneeSelectorModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const propTypes = {
betas: PropTypes.arrayOf(PropTypes.string),

/** All of the personal details for everyone */
personalDetails: personalDetailsPropType,
personalDetails: PropTypes.objectOf(personalDetailsPropType),

/** All reports shared with the user */
reports: PropTypes.objectOf(reportPropTypes),
Expand Down
2 changes: 1 addition & 1 deletion src/pages/tasks/TaskShareDestinationSelectorModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const propTypes = {
betas: PropTypes.arrayOf(PropTypes.string),

/** All of the personal details for everyone */
personalDetails: personalDetailsPropType,
personalDetails: PropTypes.objectOf(personalDetailsPropType),

/** All reports shared with the user */
reports: PropTypes.objectOf(reportPropTypes),
Expand Down
2 changes: 1 addition & 1 deletion src/pages/workspace/WorkspaceMembersPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import * as PersonalDetailsUtils from '../../libs/PersonalDetailsUtils';

const propTypes = {
/** All personal details asssociated with user */
personalDetails: personalDetailsPropType,
personalDetails: PropTypes.objectOf(personalDetailsPropType),

/** URL Route params */
route: PropTypes.shape({
Expand Down

0 comments on commit 7ea8f5c

Please sign in to comment.