Skip to content

Commit

Permalink
fix small bug in circuitValue
Browse files Browse the repository at this point in the history
  • Loading branch information
mitschabaude committed Jul 20, 2022
1 parent cb085a5 commit 82460c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/circuit_value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ function circuitValue<T>(
options?: { customObjectKeys: string[] }
): AsFieldElements<T> {
let objectKeys =
typeof typeObj === 'object'
typeof typeObj === 'object' && typeObj !== null
? options?.customObjectKeys ?? Object.keys(typeObj).sort()
: [];

Expand Down

0 comments on commit 82460c1

Please sign in to comment.