diff --git a/src/app/router/Prompt/Prompt.tsx b/src/app/router/Prompt/Prompt.tsx index a063ca49b5..527dcbcf6f 100644 --- a/src/app/router/Prompt/Prompt.tsx +++ b/src/app/router/Prompt/Prompt.tsx @@ -11,7 +11,6 @@ import LNURLWithdraw from "@screens/LNURLWithdraw"; import LiquidConfirmGetAddress from "@screens/Liquid/ConfirmGetAddress"; import ConfirmSignPset from "@screens/Liquid/ConfirmSignPset"; import MakeInvoice from "@screens/MakeInvoice"; -import NostrConfirm from "@screens/Nostr/Confirm"; import NostrConfirmGetPublicKey from "@screens/Nostr/ConfirmGetPublicKey"; import NostrConfirmSignMessage from "@screens/Nostr/ConfirmSignMessage"; import NostrConfirmSignSchnorr from "@screens/Nostr/ConfirmSignSchnorr"; @@ -29,6 +28,7 @@ import LiquidEnable from "~/app/screens/Enable/LiquidEnable"; import NostrEnable from "~/app/screens/Enable/NostrEnable"; import WebbtcEnable from "~/app/screens/Enable/WebbtcEnable"; import WeblnEnable from "~/app/screens/Enable/WeblnEnable"; +import NostrConfirmEncryptOrDecrypt from "~/app/screens/Nostr/ConfirmEncryptOrDecrypt"; import type { NavigationState, OriginData } from "~/types"; // Parse out the parameters from the querystring. @@ -123,7 +123,10 @@ function Prompt() { path="public/liquid/confirmSignPset" element={} /> - } /> + } + /> } diff --git a/src/app/screens/Nostr/Confirm.tsx b/src/app/screens/Nostr/ConfirmEncryptOrDecrypt.tsx similarity index 98% rename from src/app/screens/Nostr/Confirm.tsx rename to src/app/screens/Nostr/ConfirmEncryptOrDecrypt.tsx index f142546311..2d4e15bf5b 100644 --- a/src/app/screens/Nostr/Confirm.tsx +++ b/src/app/screens/Nostr/ConfirmEncryptOrDecrypt.tsx @@ -12,7 +12,7 @@ import { USER_REJECTED_ERROR } from "~/common/constants"; import msg from "~/common/lib/msg"; import { OriginData } from "~/types"; -function NostrConfirm() { +function NostrConfirmEncryptOrDecrypt() { const { t } = useTranslation("translation", { keyPrefix: "nostr", }); @@ -133,4 +133,4 @@ function NostrConfirm() { ); } -export default NostrConfirm; +export default NostrConfirmEncryptOrDecrypt; diff --git a/src/extension/background-script/actions/nostr/decryptOrPrompt.ts b/src/extension/background-script/actions/nostr/decryptOrPrompt.ts index c26c0567a7..a70680e71f 100644 --- a/src/extension/background-script/actions/nostr/decryptOrPrompt.ts +++ b/src/extension/background-script/actions/nostr/decryptOrPrompt.ts @@ -33,7 +33,7 @@ const decryptOrPrompt = async (message: MessageDecryptGet, sender: Sender) => { rememberPermission: boolean; }>({ ...message, - action: "public/nostr/confirm", + action: "public/nostr/confirmEncryptOrDecrypt", args: { description: { action: i18n.t("permissions:nostr.nip04decrypt"), diff --git a/src/extension/background-script/actions/nostr/encryptOrPrompt.ts b/src/extension/background-script/actions/nostr/encryptOrPrompt.ts index 32a384343a..76490a3e21 100644 --- a/src/extension/background-script/actions/nostr/encryptOrPrompt.ts +++ b/src/extension/background-script/actions/nostr/encryptOrPrompt.ts @@ -31,7 +31,7 @@ const encryptOrPrompt = async (message: MessageEncryptGet, sender: Sender) => { rememberPermission: boolean; }>({ ...message, - action: "public/nostr/confirm", + action: "public/nostr/confirmEncryptOrDecrypt", args: { description: { action: i18n.t("permissions:nostr.nip04encrypt"),