diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 575cd39..65b2192 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -3246,7 +3246,7 @@ const doPublish = (success, fail) => (dispatch, getState) => { } // get the claim id from the channel name, we will use that instead - const namedChannelClaim = myChannels.find(myChannel => myChannel.name === channel); + const namedChannelClaim = myChannels ? myChannels.find(myChannel => myChannel.name === channel) : null; const channelId = namedChannelClaim ? namedChannelClaim.claim_id : ''; const publishPayload = { diff --git a/src/redux/actions/publish.js b/src/redux/actions/publish.js index 72232b6..fde7503 100644 --- a/src/redux/actions/publish.js +++ b/src/redux/actions/publish.js @@ -275,7 +275,7 @@ export const doPublish = (success: Function, fail: Function) => ( } // get the claim id from the channel name, we will use that instead - const namedChannelClaim = myChannels.find(myChannel => myChannel.name === channel); + const namedChannelClaim = myChannels ? myChannels.find(myChannel => myChannel.name === channel) : null; const channelId = namedChannelClaim ? namedChannelClaim.claim_id : ''; const publishPayload: {