This commit is contained in:
Sean Yesmunt 2019-08-28 10:55:50 -04:00
parent b4e8cde4e3
commit 3ebbb4470c
2 changed files with 2 additions and 6 deletions

4
dist/bundle.es.js vendored
View file

@ -3636,9 +3636,7 @@ function handleClaimAction(state, action) {
if (stream) {
byId[stream.claim_id] = stream;
byUri[url] = stream.claim_id;
}
if (channel) {
} else if (channel) {
byId[channel.claim_id] = channel;
byUri[stream ? channel.canonical_url : url] = channel.claim_id;
}

View file

@ -76,9 +76,7 @@ function handleClaimAction(state: State, action: any): State {
if (stream) {
byId[stream.claim_id] = stream;
byUri[url] = stream.claim_id;
}
if (channel) {
} else if (channel) {
byId[channel.claim_id] = channel;
byUri[stream ? channel.canonical_url : url] = channel.claim_id;
}