Skip to content

Commit

Permalink
fix: skip update if no changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Feb 8, 2024
1 parent a1a60f6 commit 594087e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/generator/generateTokenList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export async function generateTokenList(pools: TokenListParams) {
}
}

// if (cachedList.tokens.length === tokens.length) return;
if (cachedList.tokens.length === tokens.length) return;
const tokenList: TokenList = {
name: 'Aave token list',
logoURI: 'ipfs://QmWzL3TSmkMhbqGBEwyeFyWVvLmEo3F44HBMFnmTUiTfp1',
Expand Down Expand Up @@ -120,7 +120,7 @@ export async function generateTokenList(pools: TokenListParams) {
version: {
major: 3,
minor: 0,
patch: cachedList.version?.patch ? cachedList.version.patch + 1 : 0,
patch: cachedList.version?.patch != undefined ? cachedList.version.patch + 1 : 0,
},
tokens,
};
Expand Down

0 comments on commit 594087e

Please sign in to comment.