diff options
author | Florian Dold <florian@dold.me> | 2021-03-10 17:11:59 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-03-10 17:11:59 +0100 |
commit | 1392dc47c6489fca1b3a4c036852873495190c36 (patch) | |
tree | b8b76bff34b7425de602651fec3d86463e4c7599 /packages/taler-wallet-core/src/util | |
parent | ac89c3d277134e49e44d8b0afd4930fd4df934aa (diff) | |
download | wallet-core-1392dc47c6489fca1b3a4c036852873495190c36.tar.xz |
finish first complete end-to-end backup/sync test
Diffstat (limited to 'packages/taler-wallet-core/src/util')
-rw-r--r-- | packages/taler-wallet-core/src/util/helpers.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/util/helpers.ts b/packages/taler-wallet-core/src/util/helpers.ts index 3d8999ed5..f5c204310 100644 --- a/packages/taler-wallet-core/src/util/helpers.ts +++ b/packages/taler-wallet-core/src/util/helpers.ts @@ -59,7 +59,7 @@ export function canonicalizeBaseUrl(url: string): string { */ export function canonicalJson(obj: any): string { // Check for cycles, etc. - JSON.stringify(obj); + obj = JSON.parse(JSON.stringify(obj)); if (typeof obj === "string" || typeof obj === "number" || obj === null) { return JSON.stringify(obj); } |