Skip to content

Commit

Permalink
fix recipe cards not adding urls if no sig was present on the event
Browse files Browse the repository at this point in the history
  • Loading branch information
chakany committed Nov 23, 2024
1 parent e7d2cda commit 2a66799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/RecipeCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
let link = '';
$: {
if (event.id && event.sig && event.kind) {
if (event) {
const d = event.tags.find((t) => t[0] == 'd')?.[1];
if (d) {
const naddr = nip19.naddrEncode({
Expand Down

0 comments on commit 2a66799

Please sign in to comment.