diff --git a/src/components/Claim/Claim.tsx b/src/components/Claim/Claim.tsx index dbd6cda8d..ff197595e 100644 --- a/src/components/Claim/Claim.tsx +++ b/src/components/Claim/Claim.tsx @@ -181,7 +181,10 @@ export const Claim = ({}) => { initials: getInitialsFromName(recipientName), memo: claimLinkData.textContent, attachmentUrl: claimLinkData.fileUrl, - cancelledDate: status === 'cancelled' ? new Date(claimLinkData.events[0]?.timestamp) : undefined, + cancelledDate: + status === 'cancelled' && claimLinkData.events?.[0] + ? new Date(claimLinkData.events[0].timestamp) + : undefined, txHash: claimLinkData.claim?.txHash, extraDataForDrawer: { isLinkTransaction: true, diff --git a/src/services/services.types.ts b/src/services/services.types.ts index 4cc97869f..99be569dc 100644 --- a/src/services/services.types.ts +++ b/src/services/services.types.ts @@ -374,7 +374,8 @@ export type SendLink = { }[] } } - events: { + /** Absent post-ledger-collapse: the API no longer selects the `events` relation. */ + events?: { timestamp: Date status: SendLinkStatus reason?: string