Skip to content

Commit

Permalink
Merge pull request #37 from GetScatter/master
Browse files Browse the repository at this point in the history
fix for transfer popup
  • Loading branch information
nsjames authored Apr 29, 2020
2 parents b67d2c6 + bdb7ea8 commit b812c49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bridge",
"version": "1.0.5",
"version": "1.0.6",
"private": true,
"scripts": {
"build": "npm run check && yarn && cross-env NODE_ENV=production BABEL_ENV=prod vue-cli-service build && npm run zip",
Expand Down
2 changes: 1 addition & 1 deletion src/components/reusable/RecipientField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
recipientFriend(){
if(!this.hasPremium) return false;
if(!this.token) return false;
return (this.scatter || []).friends.find(friend => friend.accounts.some(x => x.recipient === this.recipient && x.blockchain === this.token.blockchain && x.chainId === this.token.chainId));
return (this.scatter.friends || []).find(friend => friend.accounts.some(x => x.recipient === this.recipient && x.blockchain === this.token.blockchain && x.chainId === this.token.chainId));
},
},
methods:{
Expand Down
2 changes: 1 addition & 1 deletion src/views/popouts/Signature.vue
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
},
to(){
if(!this.tokenTransfer) return;
const friend = (this.scatter || []).friends.find(friend => friend.accounts.some(x => x.recipient === this.tokenTransfer.to && x.blockchain === this.network.blockchain && x.chainId === this.network.chainId));
const friend = (this.scatter.friends || []).find(friend => friend.accounts.some(x => x.recipient === this.tokenTransfer.to && x.blockchain === this.network.blockchain && x.chainId === this.network.chainId));
if(friend) return friend.name;
return this.tokenTransfer.to;
Expand Down

0 comments on commit b812c49

Please sign in to comment.