From 8e5b1d7239bc292df975d7cce1658b1ed4a2410b Mon Sep 17 00:00:00 2001 From: Knee Cola Date: Sun, 23 Nov 2025 10:52:52 +0100 Subject: [PATCH] fix: Only show proof of payment link when attachment exists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added conditional check to display proof of payment link only when utilBillsProofOfPaymentAttachment is present in LocationCard. Previously the link was always rendered, even when no attachment was uploaded. This fix ensures the link only appears when there's actually a proof of payment file available. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/ui/LocationCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ui/LocationCard.tsx b/app/ui/LocationCard.tsx index 047767f..7944935 100644 --- a/app/ui/LocationCard.tsx +++ b/app/ui/LocationCard.tsx @@ -70,7 +70,7 @@ export const LocationCard: FC = ({ location, currency }) => { )} - {( + {utilBillsProofOfPaymentAttachment && (