diff --git a/packages/wallet-webui/src/screens/PeerReceiveScreen.tsx b/packages/wallet-webui/src/screens/PeerReceiveScreen.tsx index bb4cde691..d1638ea82 100644 --- a/packages/wallet-webui/src/screens/PeerReceiveScreen.tsx +++ b/packages/wallet-webui/src/screens/PeerReceiveScreen.tsx @@ -1,3 +1,4 @@ +import { TalerErrorCode } from "@gnu-taler/taler-util"; import { Button } from "../ui/Button.js"; import { Card } from "../ui/Card.js"; import { ErrorCard } from "../ui/ErrorCard.js"; @@ -25,6 +26,10 @@ export function PeerReceiveScreen(props: { onWithdraw: () => void; }) { const receive = props.kind === "receive"; + // more money does not help with a request that expired or was paid + const requestGone = + props.error?.detail?.code === + TalerErrorCode.WALLET_PEER_PULL_DEBIT_PURSE_GONE; return (
@@ -64,7 +69,7 @@ export function PeerReceiveScreen(props: { onClick={props.onRetryObservation} >{i18n.str`Retry updates`} )} - {!receive && ( + {!receive && !requestGone && (