Skip to content

Commit

Permalink
Merge pull request #134 from bob2402/not-logged-in-payment
Browse files Browse the repository at this point in the history
problem: no error given to user when zap request event can't be created
  • Loading branch information
gsovereignty authored Sep 3, 2024
2 parents ecdace4 + e63a1a4 commit cbfed9e
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/components/ProductCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
import AddProductToRocket from './AddProductToRocket.svelte';
import PayNow from './PayNow.svelte';
import { onMount } from 'svelte';
import { devmode } from '@/stores/session';
import { currentUser, devmode } from '@/stores/session';
import BadgeMaker from './BadgeMaker.svelte';
import Login from './Login.svelte';
export let product: ProductEvent;
export let rocket: Rocket;
Expand Down Expand Up @@ -98,12 +99,16 @@
>
</div>
{/if}
<PayNow
disabled={disabled(productFromRocket)}
{product}
rocketProduct={rocket.Products().get(product.ID())}
{rocket}
/>
{#if $currentUser}
<PayNow
disabled={disabled(productFromRocket)}
{product}
rocketProduct={rocket.Products().get(product.ID())}
{rocket}
/>
{:else}
<Login />
{/if}
{/if}
{#if $devmode}
<a
Expand Down

0 comments on commit cbfed9e

Please sign in to comment.