mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
fixed variable declaration
This commit is contained in:
@ -185,7 +185,7 @@ export const SignaturePad = ({
|
|||||||
if ($el.current) {
|
if ($el.current) {
|
||||||
const ctx = $el.current.getContext('2d');
|
const ctx = $el.current.getContext('2d');
|
||||||
const { width, height } = $el.current;
|
const { width, height } = $el.current;
|
||||||
ctx?.clearRect(0, 0, $el.current.width, $el.current.height);
|
ctx?.clearRect(0, 0, width, height);
|
||||||
if (typeof defaultValue === 'string' && defaultImageRef.current) {
|
if (typeof defaultValue === 'string' && defaultImageRef.current) {
|
||||||
ctx?.putImageData(defaultImageRef.current, 0, 0);
|
ctx?.putImageData(defaultImageRef.current, 0, 0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user