Skip to content

Commit

Permalink
convert contenthash to string before adding to other records
Browse files Browse the repository at this point in the history
  • Loading branch information
storywithoutend committed Aug 28, 2023
1 parent 39506c6 commit bacb891
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/pages/profile/ProfileDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ export const ProfileDetails = ({
}) => {
const breakpoint = useBreakpoint()

const _contentHash = contentHashToString(contentHash)
const otherRecords = [
...textRecords
.filter(
Expand All @@ -314,9 +315,7 @@ export const ProfileDetails = ({
!supportedProfileItems.includes(x.key.toLowerCase()),
)
.map((x) => ({ ...x, type: 'text' })),
...(contentHash
? [{ key: 'contenthash', type: 'contenthash', value: contentHashToString(contentHash) }]
: []),
...(_contentHash ? [{ key: 'contenthash', type: 'contenthash', value: _contentHash }] : []),
]

const mappedOwners = ownershipInfoCalc(name, pccExpired, owners, gracePeriodEndDate, expiryDate)
Expand Down

0 comments on commit bacb891

Please sign in to comment.