fix(footer): Fixing bug on initial load of the app

This commit is contained in:
Chris Troutner
2022-09-03 12:44:01 -07:00
parent 4da46eaedc
commit 321a15535b
+3 -1
View File
@@ -19,7 +19,9 @@ function Footer (props) {
async function fetchData () {
try {
const hash = await getUpdatedUrl(wallet)
setIpfsCid(hash)
if (hash) {
setIpfsCid(hash)
}
} catch (err) {
console.error('Error trying to retrieve Filecoin CID for the app from the BCH blockchain.')
}