mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03:00
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. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Removed unused code to improve code quality and maintainability. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
1 parent
9e3a10d557
commit
aa674dd536
1 file changed
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user