From 5093d0c95ac2b99d6e4eeefb8895fb9aec6242d7 Mon Sep 17 00:00:00 2001 From: Shubham Parkhi Date: Mon, 7 Oct 2024 19:09:17 +0530 Subject: [PATCH] fix: do not display Snap if signature type is not relevant --- packages/snap/snap.manifest.json | 2 +- packages/snap/src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/snap/snap.manifest.json b/packages/snap/snap.manifest.json index 206c244..f8de7b6 100644 --- a/packages/snap/snap.manifest.json +++ b/packages/snap/snap.manifest.json @@ -7,7 +7,7 @@ "url": "https://github.com/kleros/scout-snap.git" }, "source": { - "shasum": "688oit4YI29f42B9RFcIuCzh7JfrABkr+TWDAWkZbng=", + "shasum": "Ls/ufIlKzGfmNx4nKTjfV1HPVxwOHeKzAgv0ckfyeVQ=", "location": { "npm": { "filePath": "dist/bundle.js", diff --git a/packages/snap/src/index.ts b/packages/snap/src/index.ts index 107f70e..81f8219 100644 --- a/packages/snap/src/index.ts +++ b/packages/snap/src/index.ts @@ -321,7 +321,7 @@ export const onSignature: OnSignatureHandler = async ({ signature, signatureOrig } else { insights.push('No verifying contract found in the signature data.'); } - } + } else return null; return { content: panel([