Skip to content

Commit baa5aa5

Browse files
authored
Merge pull request #16 from oprearocks/refactor/_voteForLink-use-array-prototype-some
refactor(Link/_voteForLink): Use Array#some
2 parents 601a0cd + 2d7d047 commit baa5aa5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/Link.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,14 @@ class Link extends Component {
3232
</div>
3333
)
3434
}
35-
35+
3636
_voteForLink = async () => {
3737
const linkId = this.props.link.id
3838
await this.props.voteMutation({
3939
variables: {
4040
linkId,
4141
},
4242
update: (store, { data: { vote } }) => {
43-
console.log(`update after vote: `, vote)
4443
this.props.updateStoreAfterVote(store, vote, linkId)
4544
},
4645
})

0 commit comments

Comments
 (0)