fix: need to use length, not size

This commit is contained in:
Derrick Hammer 2023-06-23 19:16:18 -04:00
parent 97df324828
commit 5db121774e
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ const NO_PORTALS_ERROR = [null, "no active portals"] as ErrTuple;
export async function downloadObject(cid: string): Promise<ErrTuple> { export async function downloadObject(cid: string): Promise<ErrTuple> {
const activePortals = getActivePortals(); const activePortals = getActivePortals();
if (!activePortals.size) { if (!activePortals.length) {
return NO_PORTALS_ERROR; return NO_PORTALS_ERROR;
} }