Skip to content

Commit

Permalink
fix: renterd onboarding fund wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed Nov 3, 2023
1 parent 4462f12 commit 9a065e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/twenty-colts-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'renterd': minor
---

Onboarding fund wallet step now requires >0 SC instead of a full allowance.
5 changes: 1 addition & 4 deletions apps/renterd/components/OnboardingBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ export function OnboardingBar() {

const step1Configured = app.autopilot.state.data?.configured
const step2Synced = syncStatus.isSynced
const step3Funded =
app.autopilot.state.data?.configured &&
wallet.data &&
walletBalance.gte(allowance)
const step3Funded = walletBalance.gt(0)
const step4Contracts = !notEnoughContracts.active
const steps = [step1Configured, step2Synced, step3Funded, step4Contracts]
const totalSteps = steps.length
Expand Down

0 comments on commit 9a065e6

Please sign in to comment.