diff --git a/.changeset/heavy-wolves-yawn.md b/.changeset/heavy-wolves-yawn.md new file mode 100644 index 0000000000000..b46d5fcf3e243 --- /dev/null +++ b/.changeset/heavy-wolves-yawn.md @@ -0,0 +1,5 @@ +--- +'@pancakeswap/gauges': patch +--- + +Fix unable to get pair combination when failed to get gauge list diff --git a/packages/gauges/src/getGaugesByChain.ts b/packages/gauges/src/getGaugesByChain.ts index 7f95e3eb39dcc..339839047dda0 100644 --- a/packages/gauges/src/getGaugesByChain.ts +++ b/packages/gauges/src/getGaugesByChain.ts @@ -20,7 +20,7 @@ export const getGaugesByChain = createGaugesByChainFetcher() export async function safeGetGaugesByChain(chainId?: ChainId) { try { - return getGaugesByChain(chainId) + return await getGaugesByChain(chainId) } catch (e) { console.error(e) return []