diff --git a/frontend/src/common/crypto.ts b/frontend/src/common/crypto.ts index 9895b0b08..cb1d5a510 100644 --- a/frontend/src/common/crypto.ts +++ b/frontend/src/common/crypto.ts @@ -441,11 +441,11 @@ export class BrowserKeys { export async function getFingerprint(key: string | undefined) { if (key) { const encodedKey = new TextEncoder().encode(key); - const hashBuffer = await crypto.subtle.digest("SHA-256", encodedKey); + const hashBuffer = await crypto.subtle.digest('SHA-256', encodedKey); const hashArray = Array.from(new Uint8Array(hashBuffer)); const hashHex = hashArray - .map((b) => b.toString(16).padStart(2, "0").toUpperCase()) - .join(""); + .map((b) => b.toString(16).padStart(2, '0').toUpperCase()) + .join(''); return hashHex; } } diff --git a/frontend/src/components/GrantPermissionDialog.vue b/frontend/src/components/GrantPermissionDialog.vue index ce21138e5..ee60eac3a 100644 --- a/frontend/src/components/GrantPermissionDialog.vue +++ b/frontend/src/components/GrantPermissionDialog.vue @@ -103,7 +103,7 @@ onMounted(fetchData); async function fetchData() { for (const user of props.users) { - userKeyFingerprints.value.set(user.id, await getFingerprint(user.publicKey)) + userKeyFingerprints.value.set(user.id, await getFingerprint(user.publicKey)); } }