Skip to content

Commit

Permalink
Asset comparison predicate bug fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitlens committed Feb 20, 2019
1 parent 089b214 commit 22d1f45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "stellar-notifier",
"license": "MIT",
"private": true,
"version": "0.2.1",
"version": "0.2.2",
"author": "orbitlens",
"description": "Stellar operations observer and notifier.",
"main": "app.js",
Expand Down
2 changes: 1 addition & 1 deletion util/asset-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function isValidAsset(asset) {
* @returns {boolean}
*/
function assetsEqual(asset1, asset2) {
if (!asset1 || !asset2 || isValidAsset(asset1) || isValidAsset(asset2)) return false
if (!asset1 || !asset2 || !isValidAsset(asset1) || !isValidAsset(asset2)) return false
if (asset1.type !== asset2.type) return false
return asset1.code === asset2.code && asset1.issuer === asset2.issuer
}
Expand Down

0 comments on commit 22d1f45

Please sign in to comment.