mirror of
https://github.com/status-im/liquid-funding.git
synced 2025-02-03 15:13:33 +00:00
HOTFIX - catch ipfs errors grabbing media
This commit is contained in:
parent
5a72c8184b
commit
64a2894daf
@ -46,9 +46,13 @@ export const getMediaSrc = assets => {
|
||||
if (validMedia) {
|
||||
if (media.url) return media.url
|
||||
if (media.file && media.file !== '/root/') {
|
||||
return formatMedia(
|
||||
assets.find(a => getName(a) === getFile(media.file)).content
|
||||
)
|
||||
try {
|
||||
return formatMedia(
|
||||
assets.find(a => getName(a) === getFile(media.file)).content
|
||||
)
|
||||
} catch(err) {
|
||||
console.log({err})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user