diff options
author | mat <github@matdoes.dev> | 2021-05-27 21:10:51 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2021-05-27 21:10:51 -0500 |
commit | 65d21ebe1ead9faa2e1dc6ccad0d24e990632627 (patch) | |
tree | 1f2811547398f23353655792eaf722ccd225a9b5 /build/hypixel.js | |
parent | f2f18c27d2e849fdc3b2a6766dc6ab4005cde7df (diff) | |
download | skyblock-api-65d21ebe1ead9faa2e1dc6ccad0d24e990632627.tar.gz skyblock-api-65d21ebe1ead9faa2e1dc6ccad0d24e990632627.tar.bz2 skyblock-api-65d21ebe1ead9faa2e1dc6ccad0d24e990632627.zip |
fix some bugs with it loading forever
Diffstat (limited to 'build/hypixel.js')
-rw-r--r-- | build/hypixel.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build/hypixel.js b/build/hypixel.js index 8e58ffc..b00774d 100644 --- a/build/hypixel.js +++ b/build/hypixel.js @@ -101,8 +101,9 @@ async function fetchUser({ user, uuid, username }, included = ['player'], custom } } let websiteAccount = undefined; - if (websiteAccountPromise) + if (websiteAccountPromise) { websiteAccount = await websiteAccountPromise; + } return { player: playerData !== null && playerData !== void 0 ? playerData : null, profiles: profilesData !== null && profilesData !== void 0 ? profilesData : basicProfilesData, |