Merge pull request #4013 from lbryio/fix-resetStatusTxoList

reset status on hidden types
This commit is contained in:
jessopb 2020-04-17 11:44:03 -04:00 committed by GitHub
commit a0ae4b824a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,7 +129,7 @@ function TxoList(props: Props) {
newUrlParams.set(TXO.SUB_TYPE, 'all');
}
}
if (currentUrlParams.active) {
if (currentUrlParams.active && !hideStatus) {
newUrlParams.set(TXO.ACTIVE, currentUrlParams.active);
} else {
newUrlParams.set(TXO.ACTIVE, 'all');
@ -158,6 +158,7 @@ function TxoList(props: Props) {
newUrlParams.set(TXO.PAGE_SIZE, currentUrlParams.pageSize);
break;
}
return `?${newUrlParams.toString()}`;
}