From f76ac435ace22e13ddb3c521a2acb5b0cc74d3d5 Mon Sep 17 00:00:00 2001 From: Bhaskar Singh Date: Mon, 15 Mar 2021 13:27:36 +0530 Subject: [PATCH] fix: load profile view even if indexer api is down (#267) --- src/pages/tezos/profile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/tezos/profile.js b/src/pages/tezos/profile.js index cf5e325a..985e0f24 100644 --- a/src/pages/tezos/profile.js +++ b/src/pages/tezos/profile.js @@ -176,7 +176,7 @@ function Profile() {
Error: {ownedBots.error.message}
) : (
- {ownedBots.value.length > 0 ? ( + {ownedBots.value && ownedBots.value.length > 0 ? ( ownedBots.value.map(el => { return (
@@ -214,7 +214,7 @@ function Profile() {
Error: {ownedBots.error.message}
) : (
- {ownedBots.value.filter(el => el.isForSale === true) + {ownedBots.value && ownedBots.value.filter(el => el.isForSale === true) .length > 0 ? ( ownedBots.value .filter(el => el.isForSale === true)