From 8cc3859e7294fdecb5d4dc9bd3480c588b9bb08d Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Thu, 25 Jul 2013 17:01:55 -0400 Subject: [PATCH] fixed for email visibility icon if data isnt set --- src/routes/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/user.js b/src/routes/user.js index 5d67d2841f..49bdeaaa7b 100644 --- a/src/routes/user.js +++ b/src/routes/user.js @@ -393,7 +393,7 @@ var user = require('./../user.js'), if(!canSeeEmail()) data.email = ""; - if(callerUID === uid && data.showemail === "0") + if(callerUID === uid && (!data.showemail || data.showemail === "0")) data.emailClass = ""; else data.emailClass = "hide";