Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

Commit

Permalink
fix: prepend project
Browse files Browse the repository at this point in the history
  • Loading branch information
necipsagiro committed Sep 25, 2023
1 parent 5a965bd commit 33f2451
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,13 @@ const showProjects = async () => {
if (!all_projects[i].is_mainnet) testnetTabContent.appendChild(row);
if (!ONBOARD_USER && all_projects[i].project.name == currentIp.icon) { // TODO: Checking by name is not a good idea. Testnet and mainnet can have same name.
gonna_prepend = row;
gonna_prepend_is_mainnet = all_projects[i].is_mainnet;
// gonna_prepend_is_mainnet = all_projects[i].is_mainnet;
}
};
if (gonna_prepend) {
// if (gonna_prepend_is_mainnet) mainnetTabContent.prepend(gonna_prepend);
// else testnetTabContent.prepend(gonna_prepend);
if (!gonna_prepend_is_mainnet) testnetTabContent.prepend(gonna_prepend);
testnetTabContent.prepend(gonna_prepend);
gonna_prepend.querySelector(".install-button").replaceWith(gonna_prepend.querySelector(".install-button").cloneNode(true));
gonna_prepend.querySelector(".install-button").addEventListener("click", function () {
loadNodePage(true);
Expand Down

0 comments on commit 33f2451

Please sign in to comment.