From 8f72780945f621ca2d1d5029ab9b46ffc3dcd01c Mon Sep 17 00:00:00 2001 From: Ignacio Date: Tue, 16 Apr 2024 11:49:15 +0800 Subject: [PATCH] feat: add mapping for urls --- src/features/staking/hooks.ts | 4 ++-- src/features/staking/lib/utils/misc.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/features/staking/hooks.ts b/src/features/staking/hooks.ts index 2730f8a..760aaa9 100644 --- a/src/features/staking/hooks.ts +++ b/src/features/staking/hooks.ts @@ -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"; @@ -33,7 +33,7 @@ export const useValidatorLogo = ( const fallbackLogo = fallbackLogoMap[operatorAddress]; if (fallbackLogo) { - setLogo(fallbackLogo); + setLogo(basePath + fallbackLogo); } } })(); diff --git a/src/features/staking/lib/utils/misc.ts b/src/features/staking/lib/utils/misc.ts index 2c4f9c3..1264fff 100644 --- a/src/features/staking/lib/utils/misc.ts +++ b/src/features/staking/lib/utils/misc.ts @@ -1,5 +1,5 @@ const urlMapping: Record = { - // "https://www.stakelab.fr": "https://www.stakelab.zone", + "https://www.stakelab.fr": "https://www.stakelab.zone", }; export const parseWebsite = (website?: string) => {