Skip to content

Commit

Permalink
fix: only modify file if we have private key
Browse files Browse the repository at this point in the history
  • Loading branch information
IanKrieger committed Sep 20, 2023
1 parent dd83c3d commit 3217904
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/user/reporting/csv.library.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ async function transformConversionEnvelope(
blob: Blob,
privateKey?: string,
): Promise<Blob> {
if (!privateKey) {
return Promise.resolve(blob);
}

const te = new TextEncoder();
const td = new TextDecoder();
const ui8a = (s: string) => Uint8Array.from(atob(s), (c) => c.charCodeAt(0));
Expand Down

0 comments on commit 3217904

Please sign in to comment.