Skip to content

Commit

Permalink
MOSIP-32662: Re-upload fix
Browse files Browse the repository at this point in the history
Signed-off-by: SwethaKrish4 <[email protected]>
  • Loading branch information
SwethaKrish4 committed May 10, 2024
1 parent 48ddb6c commit b7b28d8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pmp-reactjs-ui/src/pages/UploadCertificate.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ function UploadCertificate({ closePopup, partnerData }) {

useEffect(() => {
let intervalId;

if (uploading) {
intervalId = setInterval(() => {
setRotation(rotation => (rotation + 1) % 360);
Expand All @@ -83,7 +82,6 @@ function UploadCertificate({ closePopup, partnerData }) {
clearInterval(intervalId);
setRotation(0);
}

return () => clearInterval(intervalId);
}, [uploading]);

Expand Down

0 comments on commit b7b28d8

Please sign in to comment.