Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/components/Claim/Claim.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion src/services/services.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading