Merge pull request #216 from lbryio/apiPublishNew
returns channel create result for use outside lbry-redux
This commit is contained in:
commit
c763f35452
2 changed files with 4 additions and 0 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -2525,11 +2525,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;
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
|
@ -288,12 +288,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;
|
||||
})
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue