From 791a22cb5f833bd0578c09f4d1e8d629e27845f6 Mon Sep 17 00:00:00 2001 From: David Nguyen Date: Mon, 19 Feb 2024 13:22:48 +1100 Subject: [PATCH] refactor: add comments --- apps/web/src/components/document/document-history-sheet.tsx | 2 ++ packages/lib/constants/recipient-roles.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/document/document-history-sheet.tsx b/apps/web/src/components/document/document-history-sheet.tsx index 29d9a9c96..0d0c56aa2 100644 --- a/apps/web/src/components/document/document-history-sheet.tsx +++ b/apps/web/src/components/document/document-history-sheet.tsx @@ -51,6 +51,7 @@ export const DocumentHistorySheet = ({ }, { getNextPageParam: (lastPage) => lastPage.nextCursor, + keepPreviousData: true, }, ); @@ -168,6 +169,7 @@ export const DocumentHistorySheet = ({ }, ]; + // Insert the name to the start of the array if available. if (data.recipientName) { values.unshift({ key: 'Name', diff --git a/packages/lib/constants/recipient-roles.ts b/packages/lib/constants/recipient-roles.ts index 44e4c34da..ce1037dd9 100644 --- a/packages/lib/constants/recipient-roles.ts +++ b/packages/lib/constants/recipient-roles.ts @@ -9,7 +9,7 @@ export const RECIPIENT_ROLES_DESCRIPTION = { }, [RecipientRole.CC]: { actionVerb: 'CC', - actioned: 'CCed', + actioned: `CC'd`, progressiveVerb: 'CC', roleName: 'Cc', },