fix IPFS not fetching from remote

This commit is contained in:
Barry Gitarts 2019-03-06 10:11:58 -05:00 committed by Barry G
parent 602e32b68c
commit 47e0175dc5

View File

@ -64,7 +64,7 @@ export const getFromIpfs = async hash => {
export const getFiles = CID => {
const clean = CID.split('/').slice(-1)[0]
return new Promise(function(resolve, reject) {
ipfs.get(clean, function (err, files) {
ipfs.get(clean, (err, files) => {
if (err) reject(err)
else resolve(files)
})