File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
apps/OpenSign/src/constant Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -566,13 +566,13 @@ export const signPdfFun = async (
566
566
// for adding it in completion certificate
567
567
let getSignature ;
568
568
for ( let item of xyPosition ) {
569
- const typeExist = item . pos . some ( ( data ) => data ?. type ) ;
570
- if ( typeExist ) {
571
- getSignature = item . pos . find ( ( data ) => data ?. type === "signature" ) ;
572
- break ;
573
- } else {
574
- getSignature = item . pos . find ( ( data ) => ! data . isStamp ) ;
575
- break ;
569
+ if ( ! getSignature ) {
570
+ const typeExist = item . pos . some ( ( data ) => data ?. type ) ;
571
+ if ( typeExist ) {
572
+ getSignature = item . pos . find ( ( data ) => data ?. type === "signature" ) ;
573
+ } else {
574
+ getSignature = item . pos . find ( ( data ) => ! data . isStamp ) ;
575
+ }
576
576
}
577
577
}
578
578
You can’t perform that action at this time.
0 commit comments