diff --git a/src/components/UserProperty/Badges.js b/src/components/UserProperty/Badges.js index d71afa8..955e2ac 100644 --- a/src/components/UserProperty/Badges.js +++ b/src/components/UserProperty/Badges.js @@ -31,7 +31,7 @@ const Badges = ({ user, onChange }) => { return [...previousBadges.filter((b) => b.displayed == false), ...newDisplayedBadges] || [] } }, user.badges || []); - const displayedBadges = badges.filter((b) => b.displayed == true).sort((a, b) => a.order - b.order) || [] + const displayedBadges = user.displayedBadges || []; const badgesAlphabetical = [...badges].sort((a, b) => a.id.localeCompare(b.id)) return (