From 594087e2857b6be3d71361e270b341812e7b5ba6 Mon Sep 17 00:00:00 2001 From: sakulstra Date: Thu, 8 Feb 2024 16:16:00 +0100 Subject: [PATCH] fix: skip update if no changes --- scripts/generator/generateTokenList.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/generator/generateTokenList.ts b/scripts/generator/generateTokenList.ts index aed94740..b756f616 100644 --- a/scripts/generator/generateTokenList.ts +++ b/scripts/generator/generateTokenList.ts @@ -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', @@ -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, };