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`); + }), + ]), }, });