Skip to content

Commit

Permalink
fix: fetch error handler in project info page
Browse files Browse the repository at this point in the history
  • Loading branch information
0xExp-po committed Sep 16, 2024
1 parent d315480 commit 8bbd3d7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions dapp/src/components/ProjectInfo.astro
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ import ModalInput from "./utils/ModalInput.astro";
const projectDescription = document.getElementById("project-description");

if (projectThumbnail) {
if (configData) {
if (configData && configData.logoImageLink) {
projectThumbnail.src = convertGitHubLink(configData.logoImageLink) || "/fallback-image.jpg";
}
} else projectThumbnail.src = "/fallback-image.jpg";
}

if (projectDescription) {
Expand Down Expand Up @@ -473,8 +473,6 @@ import ModalInput from "./utils/ModalInput.astro";
failedBadge.appendChild(icon);
failedBadge.appendChild(text);
syncStatusContainer.appendChild(failedBadge);

return;
}

if (tomlFileHash) {
Expand Down

0 comments on commit 8bbd3d7

Please sign in to comment.