Merge pull request #13 from Permissionless-Software-Foundation/ct-unstable

Fixing bug in footer
This commit is contained in:
Chris Troutner
2022-09-03 12:45:11 -07:00
committed by GitHub
2 changed files with 4 additions and 3 deletions
+1 -2
View File
@@ -40,6 +40,5 @@
"minimal-slp-wallet": "5.0.3",
"standard": "17.0.0",
"web3.storage": "4.3.0"
},
"homepage": "https://permissionless-software-foundation.github.io/react-bootstrap-web3-spa"
}
}
+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.')
}