diff --git a/src/pages/earn/index.svelte b/src/pages/earn/index.svelte index 047aed14..7a68b8a0 100644 --- a/src/pages/earn/index.svelte +++ b/src/pages/earn/index.svelte @@ -265,6 +265,7 @@ /> {:else if $step === Step.Overview} switchStep(Step.Stake)} diff --git a/src/pages/earn/step/overview.svelte b/src/pages/earn/step/overview.svelte index 57230a3c..6961a777 100644 --- a/src/pages/earn/step/overview.svelte +++ b/src/pages/earn/step/overview.svelte @@ -3,6 +3,7 @@ import Button from '~/components/elements/button.svelte' + export let availableTokens: Asset export let maturedBalance: Asset export let rexBalance: Asset export let toStake: () => void @@ -105,7 +106,7 @@ fluid style="primary" size="regular" - disabled={false} + disabled={availableTokens.value <= 0} formValidation on:action={toStake} > @@ -115,7 +116,7 @@ fluid style="primary" size="regular" - disabled={false} + disabled={maturedBalance.value <= 0} formValidation on:action={toUnstake} >