Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed Nov 19, 2024
1 parent c5afbcf commit 23c6802
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3498,11 +3498,6 @@ function prepareOnboardingOptimisticData(
const targetChatReport = ReportUtils.getChatByParticipants([actorAccountID, currentUserAccountID]);
const {reportID: targetChatReportID = '', policyID: targetChatPolicyID = ''} = targetChatReport ?? {};

reportID: targetChatReportID,
reportActionID: introductionCommentAction.reportActionID,
reportComment: introductionComment.commentText,
};

// Text message
const textComment = ReportUtils.buildOptimisticAddCommentReportAction(data.message, undefined, actorAccountID, 1);
const textCommentAction: OptimisticAddCommentReportAction = textComment.reportAction;
Expand Down Expand Up @@ -3805,9 +3800,6 @@ function prepareOnboardingOptimisticData(
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${targetChatReportID}`,
value: {
[introductionCommentAction.reportActionID]: {
errors: ErrorUtils.getMicroSecondOnyxErrorWithTranslationKey('report.genericAddCommentFailureMessage'),
} as ReportAction,
[textCommentAction.reportActionID]: {
errors: ErrorUtils.getMicroSecondOnyxErrorWithTranslationKey('report.genericAddCommentFailureMessage'),
} as ReportAction,
Expand Down Expand Up @@ -3860,9 +3852,7 @@ function prepareOnboardingOptimisticData(
});
}

const guidedSetupData: GuidedSetupData = [
{type: 'message', ...textMessage},
];
const guidedSetupData: GuidedSetupData = [{type: 'message', ...textMessage}];

if ('video' in data && data.video && videoCommentAction && videoMessage) {
optimisticData.push({
Expand Down

0 comments on commit 23c6802

Please sign in to comment.