Removed duplicated condition.

This commit is contained in:
Pierre 2018-04-10 19:14:11 +02:00
parent e4e23fa15c
commit bfd8bb2cf0

View File

@ -51,14 +51,10 @@ ComunicWeb.components.notifications.ui = {
//Notification target
if(data.from_container_type == "user_page"){
if(data.from_container_type == "user_page"){
if(data.from_user_id == data.from_container_id)
message += "on his / her page";
else
message += "on "+userFullName(users["user-"+data.from_container_id])+"'s page";
}
if(data.from_user_id == data.from_container_id)
message += "on his / her page";
else
message += "on "+userFullName(users["user-"+data.from_container_id])+"'s page";
}