From ab0b6615677c1fb36720d860b70355809d8a8e68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Dere=C5=BEi=C4=87?= Date: Mon, 24 Nov 2025 16:32:40 +0100 Subject: [PATCH] refactor: improve Revolut QR code styling and amount format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Move styling classes (padding, background, border) directly to QRCode component - Keep amount in cents as integer instead of converting to decimal (Revolut API expects cents) - Fix URL template string (remove extra closing brace) - Remove empty line for cleaner code - Add space between size and className attributes Amount format: from (monthlyExpense / 100).toFixed(2) to monthlyExpense.toFixed(0) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/ui/ViewLocationCard.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/ui/ViewLocationCard.tsx b/app/ui/ViewLocationCard.tsx index 5d7c8ef..b17bafb 100644 --- a/app/ui/ViewLocationCard.tsx +++ b/app/ui/ViewLocationCard.tsx @@ -148,12 +148,12 @@ export const ViewLocationCard:FC = ({location, userSettin } { userSettings?.enableRevolutPayment && tenantPaymentMethod === "revolut" ? (() => { - const revolutPaymentUrl = `https://revolut.me/${userSettings.ownerRevolutProfileName?.replace('@', '')}?amount=${(monthlyExpense / 100).toFixed(2)}¤cy=${userSettings.currency}}`; + const revolutPaymentUrl = `https://revolut.me/${userSettings.ownerRevolutProfileName?.replace('@', '')}?amount=${(monthlyExpense).toFixed(0)}¤cy=${userSettings.currency}`; return ( <>

{t("payment-info-header")}

-
- +
+