From aa674dd536fcb51ad5ce0a08765ab60edbef1607 Mon Sep 17 00:00:00 2001 From: Danny White <3104761+dnywh@users.noreply.github.com> Date: Tue, 28 Apr 2026 16:05:36 +1000 Subject: [PATCH] fix(studio): unused credit card expiry label in test (#45300) ## What kind of change does this PR introduce? Bug fix. ## What is the current behavior? PR #44965 introduced an unused `cardExpiryLabel` constant in `CreditCard.tsx`, which causes `studio#typecheck` to fail with `TS6133` after the branch is merged into `master`. ## What is the new behavior? Removes the unused constant so Studio typecheck passes again without changing payment method behaviour. ## Summary by CodeRabbit * **Refactor** * Removed unused code to improve code quality and maintainability. --- .../interfaces/Billing/Payment/PaymentMethods/CreditCard.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/CreditCard.tsx b/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/CreditCard.tsx index b59374ea89a..91e4d85266c 100644 --- a/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/CreditCard.tsx +++ b/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/CreditCard.tsx @@ -57,7 +57,6 @@ const CreditCard = ({ const tokenExpiry = spt?.expires_at ? `${new Date(spt.expires_at * 1000).getMonth() + 1}/${new Date(spt.expires_at * 1000).getFullYear()}` : undefined - const cardExpiryLabel = `${expiryMonth}/${expiryYear}` const stripeStatus = (() => { if (!isSpt) return null