Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
bearni95 committed Jun 3, 2024
1 parent f91dc49 commit 0a5b3fe
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@
import { Spinner } from '$ui/Spinner';
import Token from '../../lib/token';
import type { IAddress } from '../../types';
import { NftRenderer } from '../NftRenderer';
import { chipWrapperClasses, detailClasses, detailContainerClasses, detailTitleClasses } from './classes';
export let isLoading = false;
export let taikoonId: number = -1;
$: shortenedAddress = '...';
$: owner = '0x0' as IAddress;
async function updateShortenedAddress() {
if (taikoonId < 0) return;
const owner = await Token.ownerOf(taikoonId);
owner = await Token.ownerOf(taikoonId);
shortenedAddress = await shortenAddress(owner);
}
Expand Down Expand Up @@ -52,10 +53,7 @@
</p>

<div class={detailContainerClasses}>
<InfoRow
label={$t('content.collection.ownedBy')}
value={shortenedAddress}
href={'/collection/${taikoon.owner}'} />
<InfoRow label={$t('content.collection.ownedBy')} value={shortenedAddress} href={`/collection/${owner}`} />
</div>
{/if}
</div>
Expand Down

0 comments on commit 0a5b3fe

Please sign in to comment.