fix openbook market match

This commit is contained in:
Adrian Brzeziński 2024-01-04 15:35:55 +01:00
parent 619366be5c
commit a9207e9093
1 changed files with 0 additions and 3 deletions

View File

@ -232,9 +232,6 @@ export const getBestMarket = async ({
if (!markets.length) {
return undefined
}
if (markets.length === 1) {
return markets[0].publicKey
}
const marketsDataJsons = await Promise.all([
...markets.map((x) =>
fetch(`/openSerumApi/market/${x.publicKey.toBase58()}`),