problem: registered addressess are displayed as pending

This commit is contained in:
gsovereignty
2024-08-14 19:46:48 +08:00
parent 8845be719d
commit 6721066d4d
2 changed files with 11 additions and 5 deletions

View File

@@ -83,15 +83,16 @@ their Merits.
Merit purchases must be conducted with a Bitcoin address that is associated with your pubkey,
otherwise you will not recieve the Merits upon payment.
</div>
{#if ($associatedAddresses.size == 0 && !associations) || (associations && $associations.length == 0)}You
do not have any registered addresses{:else if associations && $associations && $associations.length > 0}
{#if ($associatedAddresses.size == 0 && !associations) || ($associatedAddresses.size == 0 && associations && $associations.length == 0)}
You do not have any registered addresses
{:else if $associatedAddresses.size == 0 && associations && $associations && $associations.length > 0}
<h4 class="text-lg font-bold dark:text-white">Pending Additions</h4>
<ul class="m-2 flex flex-col">
{#each $associations as event}<li class="list-item list-disc">
{event.getMatchingTags('onchain')[0][1]}
</li>{/each}
</ul>
{:else}
{:else if $associatedAddresses.size > 0}
<h4 class="text-lg font-bold dark:text-white">Your registered addresses</h4>
<ul class="m-2 flex flex-col">

View File

@@ -49,7 +49,7 @@
on:click={() => {
window.location.href = 'https://github.com/nostrocket/hypergolic/issues';
}}
class="w-full">Apply Now</Button
class="w-full">View Problems</Button
>
</Card.Footer>
</Card.Root>
@@ -81,7 +81,12 @@
</div>
</Card.Content>
<Card.Footer>
<Button class="w-full">Read More</Button>
<Button
on:click={() => {
goto(`${base}/buymerits`);
}}
class="w-full">Let's GO!</Button
>
</Card.Footer>
</Card.Root>
</div>