Skip to content

Commit

Permalink
Merge pull request #66 from Discord-Dashboard/bug-fix
Browse files Browse the repository at this point in the history
Bug fix
  • Loading branch information
iMidnights authored Mar 15, 2023
2 parents 743f1cc + 5759add commit 0bc3c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/post/guildSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module.exports = {
let d = data.options.find((o) => o.id === option.optionId);
let canUse = {}

if (!d || (!d?.value && typeof d?.value !== 'boolean')) continue;
if (!d && !d?.id) continue;

if (option.allowedCheck) canUse = await option.allowedCheck({
guild: { id: req.params.guildId },
Expand Down

0 comments on commit 0bc3c57

Please sign in to comment.