Skip to content
Snippets Groups Projects
Commit 8e5cf9c2 authored by roadscape's avatar roadscape
Browse files

fix fallback check

parent 1f0fde03
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,7 @@ export async function avatarHandler(ctx: KoaContext) { ...@@ -47,7 +47,7 @@ export async function avatarHandler(ctx: KoaContext) {
} }
// otherwise, fall back to reading from `json_metadata` // otherwise, fall back to reading from `json_metadata`
if (!metadata) { if (!metadata || !metadata.profile) {
try { try {
metadata = JSON.parse(account.json_metadata) metadata = JSON.parse(account.json_metadata)
} catch (error) { } catch (error) {
......
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