From e4cc2a04e4208590f3461ab89cd7d64e2a82843a Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Thu, 21 Mar 2024 15:19:15 +0100 Subject: [PATCH] show the dvm name in alby nwc authorizations, catch unauthorized nwc strings --- .../src/components/RecommendationGeneration.vue | 6 +++--- ui/noogle/src/components/helper/Zap.vue | 14 ++++++++++++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/ui/noogle/src/components/RecommendationGeneration.vue b/ui/noogle/src/components/RecommendationGeneration.vue index eaf1ca2..1bba5ac 100644 --- a/ui/noogle/src/components/RecommendationGeneration.vue +++ b/ui/noogle/src/components/RecommendationGeneration.vue @@ -699,11 +699,11 @@ async function store_nwc(){ } } -async function connect_alby_nwc(){ +async function connect_alby_nwc(dvm_name){ const alby = webln.NostrWebLNProvider.withNewSecret(); let result = await alby.client.initNWC({ - name: `Noogle`, + name: dvm_name, }); if (result.payload.success){ @@ -895,7 +895,7 @@ const closeNWCModal = () => {