We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c983bc8 + 24750f3 commit eb85c85Copy full SHA for eb85c85
modules/sdk-core/src/bitgo/wallet/wallet.ts
@@ -939,7 +939,7 @@ export class Wallet implements IWallet {
939
}
940
const value = await this.bitgo.get(this.url('/maximumSpendable')).result();
941
const maximumSpendable = new BigNumber(value.maximumSpendable);
942
- if (value !== undefined || maximumSpendable.isZero()) {
+ if (value === undefined || maximumSpendable.isZero()) {
943
throw new Error('no funds to sweep');
944
945
0 commit comments