mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-08 00:22:51 +01:00
parseInt
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user