Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/frontend/src/pages/dashboard/revenue/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
userBalance.available < minWithdraw || blockedByTax ? 'true' : 'false'
"
:class="{ 'disabled-link': userBalance.available < minWithdraw || blockedByTax }"
:disabled="userBalance.available < minWithdraw || blockedByTax ? 'true' : 'false'"
:disabled="!!(userBalance.available < minWithdraw || blockedByTax) || null"
Copy link

Copilot AI Sep 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The expression !!(condition) || null is unnecessarily complex. In Vue.js, you can simply use the boolean condition directly: :disabled="userBalance.available < minWithdraw || blockedByTax". Vue will automatically handle the attribute presence/absence based on the boolean value.

Suggested change
:disabled="!!(userBalance.available < minWithdraw || blockedByTax) || null"
:disabled="userBalance.available < minWithdraw || blockedByTax"

Copilot uses AI. Check for mistakes.
:tabindex="userBalance.available < minWithdraw || blockedByTax ? -1 : undefined"
to="/dashboard/revenue/withdraw"
>
Expand Down