Skip to content

Commit 5348c66

Browse files
fix: signature widget setting icon for placed with old data
1 parent 73c219f commit 5348c66

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

apps/OpenSign/src/components/pdf/Placeholder.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,12 @@ function Placeholder(props) {
237237
}}
238238
></i>
239239
) : (
240-
props.pos.type !== "date" &&
241-
props.pos.type !== "label" &&
242-
props.pos.type !== "signature" &&
243-
!props.isSignYourself && (
240+
((!props?.pos?.type && props.pos.isStamp) ||
241+
(props?.pos?.type &&
242+
props?.pos?.type !== "date" &&
243+
props?.pos?.type !== "label" &&
244+
props?.pos?.type !== "signature" &&
245+
!props.isSignYourself)) && (
244246
<i
245247
onClick={(e) => {
246248
e.stopPropagation();

0 commit comments

Comments
 (0)