From 19bc4449b8981e041c0660708d46d287c9ed629d Mon Sep 17 00:00:00 2001 From: mymiracle0118 Date: Thu, 18 Jul 2024 16:35:16 +0200 Subject: [PATCH] fix tokenPoster image displaying issue --- package.json | 2 +- src/constants.ts | 9 +++++++-- src/lib/tokenPoster/tokenPoster.svelte | 6 +++--- src/routes/+page.svelte | 2 +- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 5f28b7c..2eb58be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@metastellar/ui-library", - "version": "0.0.18", + "version": "0.0.19", "scripts": { "dev": "vite dev --host", "build": "vite build && npm run package", diff --git a/src/constants.ts b/src/constants.ts index e053f1d..b872587 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -15,7 +15,12 @@ export const nftInfo: AssetAccount = { // issuer: "GDSZ24D4II53QDUQDWJMCOYDE7YCLWH3XUAE662GS46RCZF3E7KTRR5E" // } +// export const tokenInfo: AssetAccount = { +// code: "BTCLN", +// issuer: "GDPKQ2TSNJOFSEE7XSUXPWRP27H6GFGLWD7JCHNEYYWQVGFA543EVBVT" +// } + export const tokenInfo: AssetAccount = { - code: "BTCLN", - issuer: "GDPKQ2TSNJOFSEE7XSUXPWRP27H6GFGLWD7JCHNEYYWQVGFA543EVBVT" + code: "BLND", + issuer: "GATALTGTWIOT6BUDBCZM3Q4OQ4BO2COLOAZ7IYSKPLC2PMSOPPGF5V56" } \ No newline at end of file diff --git a/src/lib/tokenPoster/tokenPoster.svelte b/src/lib/tokenPoster/tokenPoster.svelte index 3eb9dcc..ddb7201 100644 --- a/src/lib/tokenPoster/tokenPoster.svelte +++ b/src/lib/tokenPoster/tokenPoster.svelte @@ -94,16 +94,16 @@ product 1 {:else}
-
{/if} -
+
{#if assetMetadata?.code}

{assetMetadata?.code}

- {:else if assetMetadata?.code} + {:else if assetInfo?.asset_code}

{assetInfo?.asset_code}

{:else}

{""}

diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index c309152..d7d635f 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -134,7 +134,7 @@