Remove incorrect minimum withdraw amount from dashboard (#1683)

This commit is contained in:
Prospector 2024-04-18 16:35:37 -07:00 committed by GitHub
parent e932f38160
commit 9dc68611a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,14 +94,13 @@
{{ $formatMoney(auth.user.payout_data.balance, true) }} {{ $formatMoney(auth.user.payout_data.balance, true) }}
</div> </div>
<NuxtLink <NuxtLink
v-if="auth.user.payout_data.balance >= minWithdraw" v-if="auth.user.payout_data.balance > 0"
class="goto-link" class="goto-link"
to="/dashboard/revenue" to="/dashboard/revenue"
> >
Withdraw earnings Withdraw earnings
<ChevronRightIcon class="featured-header-chevron" aria-hidden="true" /> <ChevronRightIcon class="featured-header-chevron" aria-hidden="true" />
</NuxtLink> </NuxtLink>
<span v-else>${{ minWithdraw }} is the withdraw minimum</span>
</div> </div>
</div> </div>
</section> </section>
@ -127,8 +126,6 @@ const [{ data: projects }] = await Promise.all([
), ),
]) ])
const minWithdraw = ref(0.26)
const downloadsProjectCount = computed( const downloadsProjectCount = computed(
() => projects.value.filter((project) => project.downloads > 0).length () => projects.value.filter((project) => project.downloads > 0).length
) )