From 093bbf20df5dd8f4cc0d14702787b2597f900ed5 Mon Sep 17 00:00:00 2001
From: "hamza.hramchi" <hamza.hramchi@xelians.fr>
Date: Fri, 13 Nov 2020 18:24:45 +0100
Subject: [PATCH] FEAT #14949 TIME 0:01 add parentheses to the condition

---
 src/frontend/app/signature-book.component.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/frontend/app/signature-book.component.html b/src/frontend/app/signature-book.component.html
index 9b92049b3b1..5995f8030cf 100755
--- a/src/frontend/app/signature-book.component.html
+++ b/src/frontend/app/signature-book.component.html
@@ -268,9 +268,9 @@
                             </span>
                             <i *ngIf="loadingSign" class="fa fa-spinner fa-pulse fa-2x fa-fw"></i>
                         </span>
-                        <span *ngIf="signatureBook.attachments[rightSelectedThumbnail].status == 'SIGN' && signatureBook.attachments[rightSelectedThumbnail].idTypist === this.userId; else elseBlock"
+                        <span *ngIf="(signatureBook.attachments[rightSelectedThumbnail].idTypist == this.userId) && (signatureBook.attachments[rightSelectedThumbnail].status === 'SIGN'); else elseBlock"
                             (click)="unsignFile(signatureBook.attachments[rightSelectedThumbnail])"
-                            style="cursor: pointer;color: green;">
+                            style="cursor: pointer;color: green;"> 
                             <i title="{{'lang.unsign' | translate}}" class="fa fa-check fa-2x" aria-hidden="true"></i>
                         </span>
                         <ng-template  #elseBlock>
-- 
GitLab