diff --git a/CHANGELOG.md b/CHANGELOG.md index 342ec92a4..2bb343f8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,8 @@ Web UI version numbers should always match the corresponding version of LBRY App * While editing a publish, the URL will no longer change if you select a new file. (#601) * Fixed issues with opening the folder for a file (#606) * Be consistent with the step property on credit inputs (#604) + * Fixed issue when file fails to download (#642) + * Fixed issue after accessing a video without enough credits (#605) ### Deprecated * diff --git a/ui/js/actions/content.js b/ui/js/actions/content.js index f6a5ac94b..47ad21272 100644 --- a/ui/js/actions/content.js +++ b/ui/js/actions/content.js @@ -295,6 +295,7 @@ export function doLoadVideo(uri) { streamInfo.error == "Timeout"; if (timeout) { + dispatch(doSetPlayingUri(null)); dispatch({ type: types.LOADING_VIDEO_FAILED, data: { uri }, @@ -306,6 +307,7 @@ export function doLoadVideo(uri) { } }) .catch(error => { + dispatch(doSetPlayingUri(null)); dispatch({ type: types.LOADING_VIDEO_FAILED, data: { uri }, @@ -351,6 +353,7 @@ export function doPurchaseUri(uri) { const { cost } = costInfo; if (cost > balance) { + dispatch(doSetPlayingUri(null)); dispatch(doOpenModal(modals.INSUFFICIENT_CREDITS)); return Promise.resolve(); }