Commit 8e5cf9c2 authored by roadscape's avatar roadscape

fix fallback check

parent 1f0fde03
......@@ -47,7 +47,7 @@ export async function avatarHandler(ctx: KoaContext) {
}
// otherwise, fall back to reading from `json_metadata`
if (!metadata) {
if (!metadata || !metadata.profile) {
try {
metadata = JSON.parse(account.json_metadata)
} catch (error) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment