feat: not cache custom cache (#3137)

This commit is contained in:
vvvvvv1vvvvvv
2025-09-01 14:29:49 +08:00
committed by GitHub
parent eab047c723
commit c12a17e822

View File

@@ -683,9 +683,7 @@ class PreferenceService {
getLastTimeGasSelection = (chainId: keyof GasCache): ChainGas | null => {
const cache = this.store.gasCache[chainId];
if (cache && cache.lastTimeSelect === 'gasPrice') {
if (Date.now() <= (cache.expireAt || 0)) {
return cache;
} else if (cache.gasLevel) {
if (cache.gasLevel) {
return {
lastTimeSelect: 'gasLevel',
gasLevel: cache.gasLevel,