@@ -35,7 +35,7 @@ let itemDatabase = null;
3535let currentMarketListings = [ ] ; // Stores full data for the current page from API
3636let currentlyDisplayedListings = [ ] ; // Stores the listings currently shown (after filtering)
3737let abortController = null ;
38- let lastUpdateTime = null ;
38+ // let lastUpdateTime = null;
3939let showProfitableOnlyState = false ; // Tracks if the profitable filter *should* be active
4040let isComprehensiveSearchActive = false ; // Tracks if we are *currently showing* comprehensive results
4141let comprehensiveSearchResults = [ ] ;
@@ -67,7 +67,7 @@ const detailsRecentlyListedPrice = document.getElementById('details-recently-lis
6767const detailsBuyPrice = document . getElementById ( 'details-buy-price' ) ;
6868const detailsSellPrice = document . getElementById ( 'details-sell-price' ) ;
6969const detailsError = document . getElementById ( 'details-error' ) ;
70- const lastUpdatedTimestampSpan = document . getElementById ( 'last-updated-timestamp' ) ;
70+ // const lastUpdatedTimestampSpan = document.getElementById('last-updated-timestamp');
7171const refreshButton = document . getElementById ( 'refresh-button' ) ;
7272const detailsPotentialProfit = document . getElementById ( 'details-potential-profit' ) ;
7373const detailsPersonalProfit = document . getElementById ( 'details-personal-profit' ) ;
@@ -159,7 +159,7 @@ function findItemById(itemId) { return itemDatabase?.[String(itemId)] || null; }
159159function formatNumber ( num ) { return ( num == null || isNaN ( num ) ) ? 'N/A' : num . toLocaleString ( ) ; }
160160function formatPrice ( price ) { return ( price == null || price === "" || isNaN ( price ) ) ? 'N/A' : `${ formatNumber ( price ) } Coins` ; }
161161function setTableLoading ( loading ) { if ( loading ) { resultsBody . innerHTML = `<tr><td colspan="3" style="text-align:center; padding: 30px;"><div class="loading-spinner"></div></td></tr>` ; } }
162- function updateTimestampDisplay ( ) { lastUpdatedTimestampSpan . textContent = lastUpdateTime ? `Last Updated: ${ lastUpdateTime . toLocaleTimeString ( ) } ` : 'Last Updated: Never' ; }
162+ // function updateTimestampDisplay() { lastUpdatedTimestampSpan.textContent = lastUpdateTime ? `Last Updated: ${lastUpdateTime.toLocaleTimeString()}` : 'Last Updated: Never'; }
163163
164164async function searchMarket ( page = currentPage , term = searchInput . value . trim ( ) , sort = currentSort , direction = currentDirection ) {
165165 const isForComprehensive = isComprehensiveSearchActive ; // Snapshot state
@@ -214,8 +214,8 @@ async function searchMarket(page = currentPage, term = searchInput.value.trim(),
214214 updatePagination ( ) ;
215215 applyClientSideFilter ( ) ; // Filter and display the new data
216216 resultsContainer . style . display = 'flex' ;
217- lastUpdateTime = new Date ( ) ;
218- updateTimestampDisplay ( ) ;
217+ // lastUpdateTime = new Date();
218+ // updateTimestampDisplay();
219219 return data ; // Return data
220220
221221 } catch ( error ) {
@@ -804,7 +804,7 @@ async function initializeApp() {
804804 loadPersonalPrices ( ) ; // Load personal prices (if applicable)
805805 await loadEmbeddedItemData ( ) ; // Ensure JSON data is loaded before proceeding
806806 const dbLoaded = await loadItemDatabase ( ) ; // Load the item database after JSON is loaded
807- updateTimestampDisplay ( ) ; // Update timestamp display
807+ // updateTimestampDisplay(); // Update timestamp display
808808
809809 if ( dbLoaded ) {
810810 updateSortIndicators ( ) ; // Set initial sort indicators
0 commit comments