From c0a3c47239f782f71ca7f07ed401b2297f1ffa59 Mon Sep 17 00:00:00 2001 From: Juan Manuel Rodriguez Defago Date: Mon, 18 Oct 2021 19:41:12 -0300 Subject: [PATCH] Fix to Value not a boolean issue --- src/mappings/metadataHelpers.template.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mappings/metadataHelpers.template.ts b/src/mappings/metadataHelpers.template.ts index bb832376..cd303f65 100644 --- a/src/mappings/metadataHelpers.template.ts +++ b/src/mappings/metadataHelpers.template.ts @@ -27,7 +27,9 @@ export function fetchGraphAccountMetadata(graphAccount: GraphAccount, ipfsHash: tlw.description = graphAccount.description tlw.image = graphAccount.image tlw.displayName = graphAccount.displayName - tlw.isOrganization = graphAccount.isOrganization + if (isOrganization != null && isOrganization.kind === JSONValueKind.BOOL) { + tlw.isOrganization = isOrganization.toBool() + } tlw.website = graphAccount.website tlw.save() }