mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-05 18:38:09 +01:00
js: eslints
This commit is contained in:
@@ -847,7 +847,7 @@ const createIdentityTooltipContent = (identity) => {
|
|||||||
`;
|
`;
|
||||||
};
|
};
|
||||||
|
|
||||||
let tooltipIdsToCleanup = new Set();
|
const tooltipIdsToCleanup = new Set();
|
||||||
|
|
||||||
const cleanupTooltips = () => {
|
const cleanupTooltips = () => {
|
||||||
if (window.TooltipManager) {
|
if (window.TooltipManager) {
|
||||||
@@ -1166,7 +1166,7 @@ const initializeTooltips = () => {
|
|||||||
|
|
||||||
window.TooltipManager.cleanup();
|
window.TooltipManager.cleanup();
|
||||||
|
|
||||||
let selector = '#' + state.currentTab + ' [data-tooltip-target]';
|
const selector = '#' + state.currentTab + ' [data-tooltip-target]';
|
||||||
const tooltipTriggers = document.querySelectorAll(selector);
|
const tooltipTriggers = document.querySelectorAll(selector);
|
||||||
const tooltipCount = tooltipTriggers.length;
|
const tooltipCount = tooltipTriggers.length;
|
||||||
if (tooltipCount > 50) {
|
if (tooltipCount > 50) {
|
||||||
@@ -1335,7 +1335,7 @@ const fetchBids = async () => {
|
|||||||
throw new Error(`HTTP error! status: ${response.status}`);
|
throw new Error(`HTTP error! status: ${response.status}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
let data = await response.json();
|
const data = await response.json();
|
||||||
//console.log('Received raw data:', data.length, 'bids');
|
//console.log('Received raw data:', data.length, 'bids');
|
||||||
|
|
||||||
state.filters.with_expired = includeExpired;
|
state.filters.with_expired = includeExpired;
|
||||||
|
|||||||
@@ -989,7 +989,7 @@ const chartModule = {
|
|||||||
}
|
}
|
||||||
chartModule.loadStartTime = Date.now();
|
chartModule.loadStartTime = Date.now();
|
||||||
const cacheKey = `chartData_${coinSymbol}_${window.config.currentResolution}`;
|
const cacheKey = `chartData_${coinSymbol}_${window.config.currentResolution}`;
|
||||||
let cachedData = !forceRefresh ? CacheManager.get(cacheKey) : null;
|
const cachedData = !forceRefresh ? CacheManager.get(cacheKey) : null;
|
||||||
let data;
|
let data;
|
||||||
if (cachedData && Object.keys(cachedData.value).length > 0) {
|
if (cachedData && Object.keys(cachedData.value).length > 0) {
|
||||||
data = cachedData.value;
|
data = cachedData.value;
|
||||||
|
|||||||
Reference in New Issue
Block a user