Skip to content

Commit

Permalink
fix typecheck of array content
Browse files Browse the repository at this point in the history
  • Loading branch information
twobiers committed Jan 23, 2025
1 parent 181852c commit 4d1e872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/instagram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4d1e872

Please sign in to comment.