diff --git a/packages/web/src/common/store/profile/sagas.js b/packages/web/src/common/store/profile/sagas.js index 666278b0d3..ace7a8d7e4 100644 --- a/packages/web/src/common/store/profile/sagas.js +++ b/packages/web/src/common/store/profile/sagas.js @@ -113,18 +113,20 @@ export function* fetchOpenSeaAssets(user) { ]) const collectibleList = Object.values(collectiblesMap).flat() - if (collectibleList.length !== 0) { - yield put( - cacheActions.update(Kind.USERS, [ - { - id: user.user_id, - metadata: { - collectibleList - } - } - ]) - ) + if (!collectibleList.length) { + console.log('profile has no assets in OpenSea') } + + yield put( + cacheActions.update(Kind.USERS, [ + { + id: user.user_id, + metadata: { + collectibleList + } + } + ]) + ) } export function* fetchSolanaCollectiblesForWallets(wallets) { @@ -147,16 +149,18 @@ export function* fetchSolanaCollectibles(user) { ) const solanaCollectibleList = Object.values(collectiblesMap).flat() - if (solanaCollectibleList.length !== 0) { - yield put( - cacheActions.update(Kind.USERS, [ - { - id: user.user_id, - metadata: { solanaCollectibleList } - } - ]) - ) + if (!solanaCollectibleList.length) { + console.log('profile has no Solana NFTs') } + + yield put( + cacheActions.update(Kind.USERS, [ + { + id: user.user_id, + metadata: { solanaCollectibleList } + } + ]) + ) } function* fetchSupportersAndSupporting(userId) {