From 0108e58c6c74825ce30867ddb589f19c466d4c7a Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 30 May 2022 20:09:58 -0500 Subject: Fix error that happens sometimes --- src/cleaners/skyblock/profiles.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cleaners') diff --git a/src/cleaners/skyblock/profiles.ts b/src/cleaners/skyblock/profiles.ts index 519c6d5..4e9400b 100644 --- a/src/cleaners/skyblock/profiles.ts +++ b/src/cleaners/skyblock/profiles.ts @@ -21,7 +21,7 @@ export function cleanPlayerSkyblockProfiles(rawProfiles: HypixelPlayerStatsSkyBl /** Convert an array of raw profiles into clean profiles */ export async function cleanSkyblockProfilesResponse(data: typedHypixelApi.SkyBlockProfilesResponse['profiles']): Promise { - if (data === null) return null + if (!data) return null const promises: Promise[] = [] for (const profile of data) { -- cgit