remove last

This commit is contained in:
Victor Batischev
2024-02-28 19:59:56 +03:00
parent 57cc2bc1fa
commit 59d0f5eae6
11 changed files with 28 additions and 27 deletions

View File

@ -103,12 +103,12 @@ export const Profile = () => {
{user === "developer" ? (
<span>
<p>Добрый день,&nbsp;</p>
{profileInfo?.fio ? profileInfo?.fio : profileInfo?.username}
{profileInfo?.fio || profileInfo?.username}
</span>
) : (
<span>
<p>Добрый день,&nbsp;</p>
{profileInfo?.fio ? profileInfo?.fio : profileInfo?.username}
{profileInfo?.fio || profileInfo?.username}
</span>
)}
</h2>
@ -124,13 +124,11 @@ export const Profile = () => {
<p className="summary__name">
{user === "developer" ? (
<span>
{profileInfo?.fio ? profileInfo?.fio : profileInfo?.username},{" "}
{profileInfo?.fio || profileInfo?.username},{" "}
{profileInfo?.specification} разработчик
</span>
) : (
<span>
{profileInfo?.fio ? profileInfo?.fio : profileInfo?.username}
</span>
<span>{profileInfo?.fio || profileInfo?.username}</span>
)}
</p>
</div>

View File

@ -967,7 +967,7 @@ export const ProjectTracker = () => {
alt="avatar"
/>
<span>
{task.executor?.fio ||
{removeLast(task.executor?.fio) ||
"Исполнитель не назначен"}
</span>
</div>

View File

@ -107,7 +107,7 @@ export const Summary = () => {
alt="avatar"
/>
<p className="summary__name">
{profileInfo?.fio ? profileInfo?.fio : profileInfo?.username},{" "}
{profileInfo?.fio || profileInfo?.username},{" "}
{profileInfo.specification} разработчик
</p>
</div>