We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e286390 commit 081dae0Copy full SHA for 081dae0
microfrontends/SignDocuments/src/Component/component/signPad.js
@@ -145,7 +145,11 @@ function SignPad({
145
const convertToImg = async (fontStyle) => {
146
//get text content to convert in image
147
const textContent = signValue;
148
- const fontfamily = fontStyle ? fontStyle : fontSelect;
+ const fontfamily = fontStyle
149
+ ? fontStyle
150
+ : fontSelect
151
+ ? fontSelect
152
+ : fontOptions[0].value;
153
// Calculate the width of the text content
154
const textWidth = getTextWidth(textContent, fontfamily);
155
// Increase pixel ratio for higher resolution
0 commit comments