Merge pull request #283 from lbryio/no-history

Don't call history.back when there is no previous history
This commit is contained in:
Jeremy Kauffman 2017-06-26 12:31:42 -04:00 committed by GitHub
commit d072dabead

View file

@ -61,6 +61,8 @@ export function doChangePath(path) {
export function doHistoryBack() {
return function(dispatch, getState) {
if (!history.state) return;
history.back();
};
}