returns channel create result for use outside lbry-redux

This commit is contained in:
jessop 2019-10-12 13:11:23 -04:00
parent e1965da596
commit 5aea83537a
2 changed files with 4 additions and 0 deletions

2
dist/bundle.es.js vendored
View file

@ -2496,11 +2496,13 @@ function doCreateChannel(name, amount, optionalParams) {
type: CREATE_CHANNEL_COMPLETED,
data: { channelClaim }
});
return channelClaim;
}).catch(error => {
dispatch({
type: CREATE_CHANNEL_FAILED,
data: error.message
});
return error;
});
};
}

View file

@ -277,12 +277,14 @@ export function doCreateChannel(name: string, amount: number, optionalParams: an
type: ACTIONS.CREATE_CHANNEL_COMPLETED,
data: { channelClaim },
});
return channelClaim;
})
.catch(error => {
dispatch({
type: ACTIONS.CREATE_CHANNEL_FAILED,
data: error.message,
});
return error;
})
);
};