fix params for payments (no spent) (#4009)

This commit is contained in:
jessopb 2020-04-16 21:47:10 -04:00 committed by GitHub
parent b8e0c80281
commit 214392c88a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,6 +130,8 @@ function TxoList(props: Props) {
}
if (currentUrlParams.active) {
newUrlParams.set(TXO.ACTIVE, currentUrlParams.active);
} else {
newUrlParams.set(TXO.ACTIVE, 'all');
}
newUrlParams.set(TXO.PAGE, String(1));
newUrlParams.set(TXO.PAGE_SIZE, currentUrlParams.pageSize);
@ -138,9 +140,7 @@ function TxoList(props: Props) {
if (currentUrlParams.type) {
newUrlParams.set(TXO.TYPE, currentUrlParams.type);
}
if (currentUrlParams.active) {
newUrlParams.set(TXO.ACTIVE, currentUrlParams.active);
}
newUrlParams.set(TXO.ACTIVE, 'all');
newUrlParams.set(TXO.SUB_TYPE, delta.value);
newUrlParams.set(TXO.PAGE, String(1));
newUrlParams.set(TXO.PAGE_SIZE, currentUrlParams.pageSize);