Skip to content

Commit

Permalink
Merge pull request #258 from wwWallet/fix/credential-info-rerender
Browse files Browse the repository at this point in the history
fix: rerender credential info on credential change
  • Loading branch information
kkmanos authored Jul 5, 2024
2 parents 8b0f203 + c715a48 commit 74f7d60
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/Credentials/CredentialInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ const CredentialInfo = ({ credential, mainClassName = "text-xs sm:text-sm md:tex
});
}, []);

useEffect(() => {
parseCredential(credential).then((c) => {
setParsedCredential(c);
});
}, [credential]);

return (
<div className={mainClassName}>
<table className="lg:w-4/5">
Expand Down

0 comments on commit 74f7d60

Please sign in to comment.