HOTFIX: Fix creation of channel

This commit is contained in:
Igor Gassmann 2018-01-02 16:54:57 -03:00
parent c894567eb9
commit 0e77be0ab5

View file

@ -279,9 +279,7 @@ export function doLoadVideo(uri) {
});
dispatch(
doAlertError(
`Failed to download ${
uri
}, please try again. If this problem persists, visit https://lbry.io/faq/support for support.`
`Failed to download ${uri}, please try again. If this problem persists, visit https://lbry.io/faq/support for support.`
)
);
});
@ -444,14 +442,14 @@ export function doCreateChannel(name, amount) {
channel_name: name,
amount: parseFloat(amount),
}).then(
channelClaim => {
const newChannelClaim = channelClaim;
newChannelClaim.name = name;
newChannelClaim => {
const channelClaim = newChannelClaim;
channelClaim.name = name;
dispatch({
type: ACTIONS.CREATE_CHANNEL_COMPLETED,
data: { newChannelClaim },
data: { channelClaim },
});
resolve(newChannelClaim);
resolve(channelClaim);
},
error => {
reject(error);