aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-05-30 20:09:58 -0500
committermat <github@matdoes.dev>2022-05-30 20:09:58 -0500
commit0108e58c6c74825ce30867ddb589f19c466d4c7a (patch)
tree4833c16a50725ae909cd25cf64457690f89d0196
parentf8b1876203c6d0449e597bf9d9de4bdabf55b242 (diff)
downloadskyblock-api-0108e58c6c74825ce30867ddb589f19c466d4c7a.tar.gz
skyblock-api-0108e58c6c74825ce30867ddb589f19c466d4c7a.tar.bz2
skyblock-api-0108e58c6c74825ce30867ddb589f19c466d4c7a.zip
Fix error that happens sometimes
-rw-r--r--src/cleaners/skyblock/profiles.ts2
1 files changed, 1 insertions, 1 deletions
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<CleanFullProfile[] | null> {
- if (data === null) return null
+ if (!data) return null
const promises: Promise<CleanFullProfile | null>[] = []
for (const profile of data) {