diff --git a/src/download.ts b/src/download.ts index d1b909b..cdf5e6a 100644 --- a/src/download.ts +++ b/src/download.ts @@ -7,7 +7,7 @@ const NO_PORTALS_ERROR = [null, "no active portals"] as ErrTuple; export async function downloadObject(cid: string): Promise { const activePortals = getActivePortals(); - if (!activePortals.size) { + if (!activePortals.length) { return NO_PORTALS_ERROR; }