mirror of
https://github.com/Permissionless-Software-Foundation/psf-memo-client.git
synced 2026-09-21 16:52:02 -07:00
fix(footer): Fixing bug on initial load of the app
This commit is contained in:
@@ -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.')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user