Skip to content

Commit

Permalink
fix cache rules
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNe0x1 committed Sep 10, 2024
1 parent 2602e86 commit b79ad99
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions dist/esm/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ let TokenImage = function(props){
try {
storedImage = JSON.parse(storedImage);
} catch (e) {}
}
if(storedImage && storedImage.length && storedImage.src && storedImage.expiresAt > Date.now() && storedImage.src != UNKNOWN_IMAGE) {
}
if(storedImage && storedImage.src && storedImage.expiresAt > Date.now() && storedImage.src != UNKNOWN_IMAGE) {
return setSource(storedImage.src, 'stored')
}
const foundMajorToken = Blockchains[blockchain].tokens.find((token)=> token.address.toLowerCase() === _optionalChain([address, 'optionalAccess', _ => _.toLowerCase, 'call', _2 => _2()]));
Expand Down
4 changes: 2 additions & 2 deletions dist/esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ let TokenImage = function(props){
try {
storedImage = JSON.parse(storedImage);
} catch (e) {}
}
if(storedImage && storedImage.length && storedImage.src && storedImage.expiresAt > Date.now() && storedImage.src != UNKNOWN_IMAGE) {
}
if(storedImage && storedImage.src && storedImage.expiresAt > Date.now() && storedImage.src != UNKNOWN_IMAGE) {
return setSource(storedImage.src, 'stored')
}
const foundMajorToken = Blockchains[blockchain].tokens.find((token)=> token.address.toLowerCase() === _optionalChain([address, 'optionalAccess', _ => _.toLowerCase, 'call', _2 => _2()]));
Expand Down
4 changes: 2 additions & 2 deletions dist/esm/index.solana.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ let TokenImage = function(props){
try {
storedImage = JSON.parse(storedImage);
} catch (e) {}
}
if(storedImage && storedImage.length && storedImage.src && storedImage.expiresAt > Date.now() && storedImage.src != UNKNOWN_IMAGE) {
}
if(storedImage && storedImage.src && storedImage.expiresAt > Date.now() && storedImage.src != UNKNOWN_IMAGE) {
return setSource(storedImage.src, 'stored')
}
const foundMajorToken = Blockchains[blockchain].tokens.find((token)=> token.address.toLowerCase() === _optionalChain([address, 'optionalAccess', _ => _.toLowerCase, 'call', _2 => _2()]));
Expand Down
4 changes: 2 additions & 2 deletions dist/umd/index.evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
try {
storedImage = JSON.parse(storedImage);
} catch (e) {}
}
if(storedImage && storedImage.length && storedImage.src && storedImage.expiresAt > Date.now() && storedImage.src != UNKNOWN_IMAGE) {
}
if(storedImage && storedImage.src && storedImage.expiresAt > Date.now() && storedImage.src != UNKNOWN_IMAGE) {
return setSource(storedImage.src, 'stored')
}
const foundMajorToken = Blockchains__default['default'][blockchain].tokens.find((token)=> token.address.toLowerCase() === _optionalChain([address, 'optionalAccess', _ => _.toLowerCase, 'call', _2 => _2()]));
Expand Down
4 changes: 2 additions & 2 deletions dist/umd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
try {
storedImage = JSON.parse(storedImage);
} catch (e) {}
}
if(storedImage && storedImage.length && storedImage.src && storedImage.expiresAt > Date.now() && storedImage.src != UNKNOWN_IMAGE) {
}
if(storedImage && storedImage.src && storedImage.expiresAt > Date.now() && storedImage.src != UNKNOWN_IMAGE) {
return setSource(storedImage.src, 'stored')
}
const foundMajorToken = Blockchains__default['default'][blockchain].tokens.find((token)=> token.address.toLowerCase() === _optionalChain([address, 'optionalAccess', _ => _.toLowerCase, 'call', _2 => _2()]));
Expand Down
4 changes: 2 additions & 2 deletions dist/umd/index.solana.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
try {
storedImage = JSON.parse(storedImage);
} catch (e) {}
}
if(storedImage && storedImage.length && storedImage.src && storedImage.expiresAt > Date.now() && storedImage.src != UNKNOWN_IMAGE) {
}
if(storedImage && storedImage.src && storedImage.expiresAt > Date.now() && storedImage.src != UNKNOWN_IMAGE) {
return setSource(storedImage.src, 'stored')
}
const foundMajorToken = Blockchains__default['default'][blockchain].tokens.find((token)=> token.address.toLowerCase() === _optionalChain([address, 'optionalAccess', _ => _.toLowerCase, 'call', _2 => _2()]));
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ let TokenImage = function(props){
try {
storedImage = JSON.parse(storedImage)
} catch {}
}
if(storedImage && storedImage.length && storedImage.src && storedImage.expiresAt > Date.now() && storedImage.src != UNKNOWN_IMAGE) {
}
if(storedImage && storedImage.src && storedImage.expiresAt > Date.now() && storedImage.src != UNKNOWN_IMAGE) {
return setSource(storedImage.src, 'stored')
}
const foundMajorToken = Blockchains[blockchain].tokens.find((token)=> token.address.toLowerCase() === address?.toLowerCase())
Expand Down

0 comments on commit b79ad99

Please sign in to comment.