mirror of
https://github.com/RabbyHub/Rabby.git
synced 2026-05-10 03:00:26 -04:00
feat: not cache custom cache (#3137)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user