Skip to content

Commit

Permalink
Was pushing watches to the user list even when it was an update. Fix T…
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuNls committed Jul 21, 2016
1 parent 7bab2a4 commit 62f5053
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/app/directives/watch/watch.component.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/app/directives/watch/watch.component.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/app/directives/watch/watch.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class WatchComponent implements OnInit {
this.twapi.upsertWatch(this.watchModel).then(
res => {
GAService.event('CTA', 'WATCH_UPSERT', 'SUCCESS');
this.user.watches.push(res);
this.user.upsertWatch(res);
this.watchSaved.emit(this.user)
},
error => {
Expand Down

0 comments on commit 62f5053

Please sign in to comment.