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 14, 2023
1 parent 59902d2 commit 92fa06d
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 92fa06d

Please sign in to comment.