Skip to content

Commit

Permalink
Merge pull request #2727 from CityOfZion/CU-86dteaawh-2
Browse files Browse the repository at this point in the history
CU-86dteaawh - Neon2 - On the NFT screen, adjust the decoding of the …
  • Loading branch information
melanke authored May 14, 2024
2 parents ab6627d + d773682 commit f97348b
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions app/containers/NftGallery/NftGallery.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,19 +127,6 @@ export default function NFTGallery({
isWatchOnly,
showModal,
}: Props) {
function hasUnicode(str: string) {
for (let i = 0; i < str.length; i += 1) {
if (str.charCodeAt(i) > 127) {
return true
}
}
return false
}

function decodeTokenId(tokenId) {
return hasUnicode(tokenId) ? atob(tokenId) : tokenId
}

return (
<div className={styles.nftGalleryContainer}>
<HeaderBar
Expand Down Expand Up @@ -191,7 +178,7 @@ export default function NFTGallery({
<div className={styles.tokenId}>
<div className={styles.collectionName}>TOKEN ID:</div>{' '}
<div className={styles.tokenIdContainer}>
{decodeTokenId(tokenId)}
{tokenId}
</div>
</div>
{!isWatchOnly && (
Expand Down

0 comments on commit f97348b

Please sign in to comment.