Skip to content

Commit

Permalink
fix: build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BaskarMitrah committed May 20, 2024
1 parent 943d83b commit 33e3d03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const GetCredential = ({ templateId, children, className }) => {
}
});

const isMyCredential = JSON.parse(localStorage.getItem("myCredential"));
const isMyCredential = isBrowser ? JSON.parse(localStorage.getItem("myCredential")) : undefined;

const fetchTemplate = async (org) => {
setIsError(false);
Expand Down

0 comments on commit 33e3d03

Please sign in to comment.