Skip to content

Commit a94e67c

Browse files
fix:signature pad pen color issue
1 parent e78a399 commit a94e67c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ function SignPad({
261261
: "2px solid white"
262262
}}
263263
onClick={() => {
264-
props?.convertToImg(fontSelect, signValue, data);
264+
props?.convertToImg &&
265+
props?.convertToImg(fontSelect, signValue, data);
265266
if (key === 0) {
266267
setPenColor("blue");
267268
} else if (key === 1) {

0 commit comments

Comments
 (0)