Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #459 from blockchain/sfox-sell
Browse files Browse the repository at this point in the history
Sfox sell
  • Loading branch information
plondon authored Nov 17, 2017
2 parents bf23e64 + 2ae7e8a commit 0e49b1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/external.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ Object.defineProperties(External.prototype, {
'hasExchangeAccount': {
configurable: false,
get: function () {
return (this._coinify && this._coinify.hasAccount) ||
(this._sfox && this._sfox.hasAccount) ||
(this._unocoin && this._unocoin.hasAccount) || false;
return (this._coinify && this._coinify.hasAccount && 'coinify') ||
(this._unocoin && this._unocoin.hasAccount && 'unocoin') ||
(this._sfox && this._sfox.hasAccount && 'sfox') || false;
}
}
});
Expand Down
4 changes: 2 additions & 2 deletions tests/external.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,10 @@ describe('External', () => {
it('hasExchangeAccount', () => {
expect(e.hasExchangeAccount).toEqual(false);
e._coinify.hasAccount = true;
expect(e.hasExchangeAccount).toEqual(true);
expect(e.hasExchangeAccount).toEqual('coinify');
e._coinify.hasAccount = false;
e._sfox.hasAccount = true;
expect(e.hasExchangeAccount).toEqual(true);
expect(e.hasExchangeAccount).toEqual('sfox');
});
});
});
Expand Down

0 comments on commit 0e49b1e

Please sign in to comment.