mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
Add lowercase option for NEXT_PUBLIC_VIEWS_NFT_MARKETPLACES (#3097)
Resolves #3093
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user