Skip to content

Commit

Permalink
feat: add mapping for urls
Browse files Browse the repository at this point in the history
  • Loading branch information
icfor committed Apr 16, 2024
1 parent 2c72716 commit 8f72780
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/features/staking/hooks.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect, useState } from "react";

import { defaultAvatar } from "@/constants";
import { basePath, defaultAvatar } from "@/constants";

import { keybaseClient } from "./lib/utils/keybase-client";

Expand Down Expand Up @@ -33,7 +33,7 @@ export const useValidatorLogo = (
const fallbackLogo = fallbackLogoMap[operatorAddress];

if (fallbackLogo) {
setLogo(fallbackLogo);
setLogo(basePath + fallbackLogo);
}
}
})();
Expand Down
2 changes: 1 addition & 1 deletion src/features/staking/lib/utils/misc.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const urlMapping: Record<string, string | undefined> = {
// "https://www.stakelab.fr": "https://www.stakelab.zone",
"https://www.stakelab.fr": "https://www.stakelab.zone",
};

export const parseWebsite = (website?: string) => {
Expand Down

0 comments on commit 8f72780

Please sign in to comment.