Skip to content

Commit

Permalink
fix(): invalidated computation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Kisiela committed Mar 28, 2016
1 parent 0102983 commit 68b30d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions angular-meteor-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ angular.module('angular-meteor.auth', [

let deferred = this.$$defer();

let computation = this.autorun((computation) => {
let computation = Meteor.autorun((computation) => {
if (this.getReactively('isLoggingIn')) return;
// Stop computation once a user has logged in
computation.stop();

let user = this.$$vm.currentUser;
let user = this.currentUser;
if (!user) return deferred.reject(errors.required);

let isValid = validate(user);
Expand Down

0 comments on commit 68b30d1

Please sign in to comment.