From 4d1e872e3af2137fe23d83eb788a4ab4280afb77 Mon Sep 17 00:00:00 2001 From: twobiers <22715034+twobiers@users.noreply.github.com> Date: Thu, 23 Jan 2025 19:32:42 +0100 Subject: [PATCH] fix typecheck of array content --- src/service/instagram.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/service/instagram.ts b/src/service/instagram.ts index 5a5dcd0a..3c44f10c 100644 --- a/src/service/instagram.ts +++ b/src/service/instagram.ts @@ -106,7 +106,7 @@ function extractImageUrls(response: ApiResponse) { !response.images || !Array.isArray(response.images) || response.images.length === 0 || - typeof response.images !== "string" + typeof response.images[0] !== "string" ) { return null; }