Skip to content

Commit

Permalink
number conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
LarmuseauNiels committed Mar 31, 2023
1 parent 7bd48c2 commit 0e06989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/WebApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class WebApi {

jsonify(obj) {
return JSON.stringify(obj, (key, value) =>
typeof value === "bigint" ? value.toString() : value
typeof value === "bigint" ? Number(value) : value
);
}

Expand Down

0 comments on commit 0e06989

Please sign in to comment.