Add lowercase option for NEXT_PUBLIC_VIEWS_NFT_MARKETPLACES (#3097)

Resolves #3093
This commit is contained in:
tom goriunov
2025-11-04 15:42:11 +01:00
committed by GitHub
parent 90fd801b45
commit c47d54cf1c
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -31,7 +31,11 @@ const TokenNftMarketplaces = ({ hash, id, isLoading, appActionData, source }: Pr
if (!hrefTemplate) {
return null;
}
const href = hrefTemplate.replace('{id}', id || '').replace('{hash}', hash || '');
const href = hrefTemplate
.replace('{id}', id || '')
.replace('{id_lowercase}', id?.toLowerCase() || '')
.replace('{hash}', hash || '')
.replace('{hash_lowercase}', hash?.toLowerCase() || '');
return {
href,