Skip to content

Commit

Permalink
Add dynamic coloring to staking action
Browse files Browse the repository at this point in the history
  • Loading branch information
DemogorGod committed Jun 30, 2023
1 parent f341909 commit 427f0f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/web/src/pages/overview/components/Staking.vue
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const handleDeposit = async () => {
loading.value = false
if (isSuccess) {
success.value = true
stakeButtonText.value = 'Transaction Successfully Submitted'
stakeButtonText.value = 'Transaction Submitted'
} else {
failure.value = true
stakeButtonText.value = 'Transaction Failed'
Expand Down Expand Up @@ -346,8 +346,8 @@ const handleDeposit = async () => {
</div>

<button
class="card_button bg-primary h-[37px] w-full "
:class="success? 'bg-approve' : 'bg-primary' && failure? 'bg-decline' : 'bg-primary'"
class="card_button h-[37px] w-full "
:class="success? 'bg-approve' : failure? 'bg-decline' : 'bg-primary'"
:disabled="!(termsOfServiceCheckbox && selectedWallet && formattedAmountToStake && !errorMessage)"
@click="handleDeposit()"
>
Expand Down

0 comments on commit 427f0f2

Please sign in to comment.