Skip to content

Commit

Permalink
add current url useEffect qrcode generator
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineSmet committed Jun 24, 2024
1 parent 1577428 commit 1922d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/QrCodegenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
textxalign: "center",
});
setImageSrc(canvas.toDataURL("image/png"));
}, []);
}, [currentUrl]);

return <img src={src} alt="Qr Code" />;
}

0 comments on commit 1922d60

Please sign in to comment.