Skip to content

Commit

Permalink
Remove unneeded parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
maxroehrl committed Oct 22, 2020
1 parent f80923c commit 7c01a3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/Subreddits.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default {
star(subreddit) {
if (this.isSubscribedTo(subreddit)) {
store.dispatch(this.isStarred(subreddit) ? 'unStarSubreddit' : 'starSubreddit', {subreddit}).then((r) => {
store.dispatch(this.isStarred(subreddit) ? 'unStarSubreddit' : 'starSubreddit', {subreddit}).then(() => {
this.subscriptions.sort(this.sortSubredditByStarred);
this.displaySubscriptions();
});
Expand Down

0 comments on commit 7c01a3e

Please sign in to comment.