Skip to content

Commit

Permalink
fix: effects erroring
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckySoLucky committed Nov 30, 2023
1 parent e021bdb commit 0589947
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/stats/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,7 @@ export function getMisc(profile, userProfile, hypixelProfile) {
misc.mythological_event = userProfile.player_stats.mythos;
}

if (
userProfile.player_data.active_effects !== undefined ||
userProfile.player_data.paused_effects !== undefined ||
userProfile.player_data.disabled_potion_effects !== undefined
) {
if (userProfile.player_data !== undefined) {
misc.effects = {
active: userProfile.player_data.active_effects || [],
paused: userProfile.player_data.paused_effects || [],
Expand Down

0 comments on commit 0589947

Please sign in to comment.