Revert "feat: badge for tax 2025 bug (#5230)"

This reverts commit 6d1b0eef15.
This commit is contained in:
Prospector
2026-01-27 16:31:15 -08:00
parent 638bb55649
commit 2cf82349a5
6 changed files with 6 additions and 23 deletions

View File

@@ -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(() => {