Skip to content

Commit

Permalink
web: display request memos
Browse files Browse the repository at this point in the history
  • Loading branch information
dcposch committed Sep 23, 2024
1 parent b92aa72 commit 502024e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions apps/daimo-web/src/utils/linkStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ function getLinkDescFromStatus(res: DaimoLinkStatus): LinkStatusDesc {
}
}
case "requestv2": {
const { recipient, fulfilledBy, status } = res as DaimoRequestV2Status;
const { recipient, fulfilledBy, status, memo } =
res as DaimoRequestV2Status;
const name = getAccountName(recipient);

switch (status) {
Expand All @@ -154,7 +155,7 @@ function getLinkDescFromStatus(res: DaimoLinkStatus): LinkStatusDesc {
action: i18n.link.actions.requesting(),
dollars: `${res.link.dollars}`,
description: i18n.link.responses.requestsv2.created(),
memo: res.link.memo,
memo,
};
}
case DaimoRequestState.Cancelled: {
Expand All @@ -165,7 +166,7 @@ function getLinkDescFromStatus(res: DaimoLinkStatus): LinkStatusDesc {
description: i18n.link.responses.requestsv2.canceled(
getAccountName(recipient)
),
memo: res.link.memo,
memo,
};
}
case DaimoRequestState.Fulfilled: {
Expand All @@ -176,7 +177,7 @@ function getLinkDescFromStatus(res: DaimoLinkStatus): LinkStatusDesc {
description: i18n.link.responses.requestsv2.fulfilled(
getAccountName(fulfilledBy!)
),
memo: res.link.memo,
memo,
};
}
default: {
Expand Down

0 comments on commit 502024e

Please sign in to comment.