= ({
{formatNumber(user.xp)} xp
- {!userContext.flags?.["disable-leaderboard-arrows"] && (
-
- {getArrowPos(user.id, user.arrowPos, rank)}
-
- )}
{isAdmin && (
();
- const { flags } = useFlags();
+ const { flags } = useFlags(
+ currentUser ? { user: { key: currentUser?.discordUser.id } } : undefined
+ );
const [inboxItems, setInboxItems] = useState([]);
diff --git a/models/backend/xp-models.ts b/models/backend/xp-models.ts
index 3c2834c..b6c4dbc 100644
--- a/models/backend/xp-models.ts
+++ b/models/backend/xp-models.ts
@@ -40,7 +40,6 @@ export interface IXPGuild {
allowed: Array;
}>;
};
- arrows: { [id: string]: number };
leaderboard_message: {
enabled: boolean;
messageID: string;
@@ -126,7 +125,6 @@ export interface IXPLeaderboardGuild {
export interface IXPLeaderboardUser {
id: string;
xp: number;
- arrowPos: number;
username: string;
avatar?: string;
banner?: string;