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( dispatch(
doAlertError( doAlertError(
`Failed to download ${ `Failed to download ${uri}, please try again. If this problem persists, visit https://lbry.io/faq/support for support.`
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, channel_name: name,
amount: parseFloat(amount), amount: parseFloat(amount),
}).then( }).then(
channelClaim => { newChannelClaim => {
const newChannelClaim = channelClaim; const channelClaim = newChannelClaim;
newChannelClaim.name = name; channelClaim.name = name;
dispatch({ dispatch({
type: ACTIONS.CREATE_CHANNEL_COMPLETED, type: ACTIONS.CREATE_CHANNEL_COMPLETED,
data: { newChannelClaim }, data: { channelClaim },
}); });
resolve(newChannelClaim); resolve(channelClaim);
}, },
error => { error => {
reject(error); reject(error);