summaryrefslogtreecommitdiff
path: root/client/button.js
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2015-06-20 10:48:06 +0300
committerYuval Adam <yuval@y3xz.com>2015-06-20 10:48:06 +0300
commitaa652f38c7bcfbcddbec4290995e34a1d171bbab (patch)
tree09196c03d7a1342f5e77ebc9c4d657d4b677ea2f /client/button.js
parentbe37b92f2117cf2777d1fe5edb89ad8b8020eac5 (diff)
About page and router login fix
Diffstat (limited to 'client/button.js')
-rw-r--r--client/button.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/button.js b/client/button.js
index 27beb28..4a9906a 100644
--- a/client/button.js
+++ b/client/button.js
@@ -178,5 +178,7 @@ Template.photo.helpers({
})
Accounts.onLogin(function() {
- Router.go('dates');
+ if (Router.current().route.getName() == 'login') {
+ Router.go('dates');
+ }
});