From a3fffa43f2bc2fea61022521c01a5b8034182838 Mon Sep 17 00:00:00 2001 From: lukachi Date: Wed, 7 Feb 2024 17:42:23 +0200 Subject: [PATCH] update rm vc msg --- packages/snap/snap.manifest.json | 2 +- packages/snap/src/index.ts | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/packages/snap/snap.manifest.json b/packages/snap/snap.manifest.json index 1c184361..216d1a34 100644 --- a/packages/snap/snap.manifest.json +++ b/packages/snap/snap.manifest.json @@ -7,7 +7,7 @@ "url": "https://github.com/rarimo/rarime.git" }, "source": { - "shasum": "WFQiD1nKO8Ur2/uNFquE2qZJnULye7ccAsK14ZLp1vY=", + "shasum": "GXjkIUlw10uOTKYgvXjwAgAfyxq3NCnwNlQN/ITO7mU=", "location": { "npm": { "filePath": "dist/bundle.js", diff --git a/packages/snap/src/index.ts b/packages/snap/src/index.ts index e54a7433..c01370a9 100644 --- a/packages/snap/src/index.ts +++ b/packages/snap/src/index.ts @@ -115,17 +115,19 @@ export const onRpcRequest = async ({ const vcs = await vcManager.getDecryptedVCsByClaimIds(claimIds); - const dialogContent = [ - heading('Remove Credentials'), - divider(), - ...vcs.map((el) => text(`${el.type[1]}`)), // FIXME - ]; - const res = await snap.request({ method: 'snap_dialog', params: { type: 'confirmation', - content: panel([...dialogContent]), + content: panel([ + heading('Remove Credentials'), + divider(), + ...vcs.map((el) => { + const vcTargetType = el.type[1]; + + return text(`${vcTargetType}\n`); + }), + ]), }, });