diff --git a/public/js/app.js b/public/js/app.js index dfb34f8..daed8b6 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -117,7 +117,7 @@ class AccountManager { this.assetBorrows = []; this.assetBorrowSearchTerm = ''; this.assetBorrowTypeFilter = ''; - this.assetBorrowCatalogFilter = ''; + this.assetBorrowCatalogFilter = 'current'; this.myBorrowedAssetSearchTerm = ''; this.assetBorrowProductSearchTimer = undefined; this.assetBorrowProductItems = []; @@ -312,6 +312,10 @@ class AccountManager { } renderView(page) { + if (page === 'asset-borrows' && this.currentPage !== 'asset-borrows') { + this.assetBorrowCatalogFilter = 'current'; + this.assetBorrowPage = 1; + } this.currentPage = page; const mainContent = document.getElementById('mainContent'); if (!mainContent) return; diff --git a/public/modals.html b/public/modals.html index f35dbdd..be1b401 100644 --- a/public/modals.html +++ b/public/modals.html @@ -1035,7 +1035,7 @@