Skip to content

Commit d62a9d7

Browse files
committed
fix: ignore empty gateways array
1 parent 1d0a70c commit d62a9d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sdk/GearboxSDK.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export class GearboxSDK {
222222
? Number(block.timestamp) * 1000
223223
: redstoneHistoricTimestamp;
224224
}
225-
if (redstoneGateways) {
225+
if (redstoneGateways?.length) {
226226
this.priceFeeds.redstoneUpdater.gateways = redstoneGateways;
227227
}
228228

0 commit comments

Comments
 (0)