From 2cf82349a52c20016ec04cf5767ddc056dbb16a2 Mon Sep 17 00:00:00 2001 From: Prospector <6166773+Prospector@users.noreply.github.com> Date: Tue, 27 Jan 2026 16:31:15 -0800 Subject: [PATCH] Revert "feat: badge for tax 2025 bug (#5230)" This reverts commit 6d1b0eef158902b16305ad52c2022e6809f26d6e. --- .../ui/dashboard/CreatorWithdrawModal.vue | 2 -- apps/frontend/src/layouts/default.vue | 14 ++++---------- .../frontend/src/pages/dashboard/revenue/index.vue | 3 +-- apps/frontend/src/providers/creator-withdraw.ts | 8 +------- apps/labrinth/src/models/v3/users.rs | 1 - packages/utils/types.ts | 1 - 6 files changed, 6 insertions(+), 23 deletions(-) diff --git a/apps/frontend/src/components/ui/dashboard/CreatorWithdrawModal.vue b/apps/frontend/src/components/ui/dashboard/CreatorWithdrawModal.vue index f248bb025..b356c7118 100644 --- a/apps/frontend/src/components/ui/dashboard/CreatorWithdrawModal.vue +++ b/apps/frontend/src/components/ui/dashboard/CreatorWithdrawModal.vue @@ -159,7 +159,6 @@ interface UserBalanceResponse { const props = defineProps<{ balance: UserBalanceResponse | null preloadedPaymentData?: { country: string; methods: PayoutMethod[] } | null - userBadges?: number }>() const emit = defineEmits<{ @@ -195,7 +194,6 @@ const { addNotification } = injectNotificationManager() const withdrawContext = createWithdrawContext( props.balance, props.preloadedPaymentData || undefined, - props.userBadges, ) provideWithdrawContext(withdrawContext) diff --git a/apps/frontend/src/layouts/default.vue b/apps/frontend/src/layouts/default.vue index 8d0b00f9a..dd4a34c5d 100644 --- a/apps/frontend/src/layouts/default.vue +++ b/apps/frontend/src/layouts/default.vue @@ -761,19 +761,13 @@ const { data: payoutBalance } = await useAsyncData('payout/balance', () => { const showTaxComplianceBanner = computed(() => { if (flags.value.testTaxForm && auth.value.user) return true - const user = auth.value.user - if (!user) return false const bal = payoutBalance.value - const status = bal?.form_completion_status ?? 'unknown' - const isComplete = status === 'complete' - const isTinMismatch = status === 'tin-mismatch' - if (isComplete || isTinMismatch) return false - // Show banner if user has the 2025 tax form badge override - if (user.badges & UserBadge.TAX_FORM_2025_REQUIRED) return true - // Otherwise, show if threshold met if (!bal) return false const thresholdMet = (bal.withdrawn_ytd ?? 0) >= 600 - return thresholdMet + const status = bal.form_completion_status ?? 'unknown' + const isComplete = status === 'complete' + const isTinMismatch = status === 'tin-mismatch' + return !!auth.value.user && thresholdMet && !isComplete && !isTinMismatch }) const showTinMismatchBanner = computed(() => { diff --git a/apps/frontend/src/pages/dashboard/revenue/index.vue b/apps/frontend/src/pages/dashboard/revenue/index.vue index 978227190..f3ec3ab4e 100644 --- a/apps/frontend/src/pages/dashboard/revenue/index.vue +++ b/apps/frontend/src/pages/dashboard/revenue/index.vue @@ -3,7 +3,6 @@ ref="withdrawModal" :balance="userBalance" :preloaded-payment-data="preloadedPaymentMethods" - :user-badges="auth.user?.badges" @refresh-data="refreshData" />