Part of ongoing incremental upgrade of Cashtab to typescript
Details
Details
- Reviewers
Fabien - Group Reviewers
Restricted Project - Commits
- rABCa3cb3bd23735: [Cashtab] Convert BackupWallet screen to ts
npm test, ts lint runs in CI
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- backup-wallet-to-ts
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 31766 Build 63026: Build Diff cashtab-tests Build 63025: arc lint + arc unit
Event Timeline
cashtab/src/components/BackupWallet/BackupWallet.tsx | ||
---|---|---|
61 | I guess you always have a wallet if you're loading the backup screen ? |
cashtab/src/components/BackupWallet/BackupWallet.tsx | ||
---|---|---|
61 | this matches the implementation we use on all the components converted to typescript The App screen only renders <Onboarding/> component if we do not have a valid wallets[0] So we can get rid of this check. Typescript is what lets us know this is true now. The check against false is an artifact from the dev era before Cashtab had a wallet type and any screen could load for a user with no wallet. |