+1
-1
app/dashboard/[guildId]/page.tsx
+1
-1
app/dashboard/[guildId]/page.tsx
···
18
18
const params = useParams();
19
19
20
20
return (<>
21
-
{(guild!.flags & GuildFlags.PrivateLeaderboard) !== 0 && (
21
+
{(guild!.flags & GuildFlags.PrivateLeaderboard) === 0 && (
22
22
<OverviewLink
23
23
title="View Leaderboard"
24
24
message="Easily access and view the top chatters, voice timers, and inviters from this server in the web."
+1
-1
app/passport/[guildId]/page.tsx
+1
-1
app/passport/[guildId]/page.tsx
···
179
179
/>
180
180
</div>
181
181
182
-
{guildExists && (guild.flags & GuildFlags.PrivateLeaderboard) !== 0 && (
182
+
{guildExists && (guild.flags & GuildFlags.PrivateLeaderboard) === 0 && (
183
183
<OverviewLink
184
184
title="View Leaderboard"
185
185
message="Easily access and view the top chatters, voice timers, and inviters from this server in the web."
-1
components/discord/message-file.tsx
-1
components/discord/message-file.tsx
+2
-2
utils/input.ts
+2
-2
utils/input.ts
···
51
51
"Content-Type": "application/json"
52
52
},
53
53
body: JSON.stringify(options.k.includes(".")
54
-
? { [options.k.split(".")[0]]: { [options.k.split(".")[1]]: options.transform?.(val) || val } }
55
-
: { [options.k]: options.transform?.(val) || val }
54
+
? { [options.k.split(".")[0]]: { [options.k.split(".")[1]]: options.transform?.(val) ?? val } }
55
+
: { [options.k]: options.transform?.(val) ?? val }
56
56
)
57
57
})
58
58
.catch((error) => String(error));