From b6e0a2eccefbea5cd56a3dbe20aaeb9641ca8717 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 23 May 2014 22:55:54 -0400 Subject: [PATCH] parseInt --- public/src/forum/account/profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/forum/account/profile.js b/public/src/forum/account/profile.js index 9c45bf6e7b..6b6d38ad66 100644 --- a/public/src/forum/account/profile.js +++ b/public/src/forum/account/profile.js @@ -43,7 +43,7 @@ define(['forum/account/header'], function(header) { } function updateButtons() { - var isSelfOrNotLoggedIn = yourid === theirid || yourid === '0'; + var isSelfOrNotLoggedIn = yourid === theirid || parseInt(yourid, 10) === 0; $('#follow-btn').toggleClass('hide', isFollowing || isSelfOrNotLoggedIn); $('#unfollow-btn').toggleClass('hide', !isFollowing || isSelfOrNotLoggedIn); $('#chat-btn').toggleClass('hide', isSelfOrNotLoggedIn);