Skip to content

Commit

Permalink
Merge pull request #71 from isd-sgcu/fix/reload-idcard
Browse files Browse the repository at this point in the history
fix(idcard): remove idcard from localstorage when reload
  • Loading branch information
shalluv authored Jan 11, 2024
2 parents 477aecc + 0869b86 commit f9f7a8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/IDCard/IDCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const IDCard: React.FC<Props> = ({
if (!ref.current) return;

setImage("");
window.localStorage.removeItem("idcard");

ref.current.style.display = "flex";
toPng(ref.current, {
Expand Down

0 comments on commit f9f7a8b

Please sign in to comment.