Skip to content
Snippets Groups Projects
Commit 66669452 authored by Mike's avatar Mike Committed by Tim Fesenko
Browse files

Parse metadata when returning user JSON (#1037)

* Parse metadata when returning user JSON
* Handle for potential malformed json metadata
parent db97398c
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,11 @@ export default function useUserJson(app) {
if(chainAccount) {
user = chainAccount;
try {
user.json_metadata = JSON.parse(user.json_metadata);
} catch(e) {
user.json_metadata = "";
}
status = "200";
} else {
user = "No account found";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment