redirect?
This commit is contained in:
parent
eb520c8b52
commit
0aba8cc362
1 changed files with 2 additions and 1 deletions
|
@ -29,9 +29,10 @@ export const doPublishDesktop = (filePath: string, preview?: boolean) => (dispat
|
|||
const noFileParam = !filePath || filePath === NO_FILE;
|
||||
const state = getState();
|
||||
const editingUri = makeSelectPublishFormValue('editingURI')(state) || '';
|
||||
const remoteUrl = makeSelectPublishFormValue('remoteFileUrl')(state);
|
||||
const claim = makeSelectClaimForUri(editingUri)(state) || {};
|
||||
const hasSourceFile = claim.value && claim.value.source;
|
||||
const redirectToLivestream = noFileParam && !hasSourceFile;
|
||||
const redirectToLivestream = noFileParam && !hasSourceFile && !remoteUrl;
|
||||
|
||||
const publishSuccess = (successResponse, lbryFirstError) => {
|
||||
const state = getState();
|
||||
|
|
Loading…
Add table
Reference in a new issue