Skip to content

Commit

Permalink
fix: this lead to the unintentional breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
DanTehrani committed Oct 11, 2023
1 parent 2fab170 commit 53049c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/lib/src/core/membership_prover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class MembershipProver extends Profiler implements IProver {

this.time("Load circuit");
const useRemoteCircuit =
this.useRemoteCircuit ?? typeof window !== "undefined";
this.useRemoteCircuit || typeof window !== "undefined";
const circuitBin = await loadCircuit(this.circuit, useRemoteCircuit);
this.timeEnd("Load circuit");

Expand Down
2 changes: 1 addition & 1 deletion packages/lib/src/core/membership_verifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class MembershipVerifier extends Profiler implements IVerifier {

this.circuit = options.circuit;
this.useRemoteCircuit =
options.useRemoteCircuit ?? typeof window !== "undefined";
options.useRemoteCircuit || typeof window !== "undefined";
}

async initWasm() {
Expand Down

0 comments on commit 53049c8

Please sign in to comment.