Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus-Rost committed Nov 5, 2024
1 parent 112fa90 commit 531a7e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dashboard/functions/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -1043,14 +1043,14 @@ function update_user_settings(res, userSettings, guild, settings) {
if ( settings.sectiondesclength > 4_000 ) return res(( guild ? `/guild/${guild}/settings` : '/settings' ), 'savefail');
}

sendMsg( {
( guild ? sendMsg( {
type: 'getMember',
member: userSettings.user.id,
guild: guild
} ).catch(error => {
console.log( '- Dashboard: Error while getting the member: ' + error );
return;
} ).then( guildResponse => {
} ) : Promise.resolve() ).then( guildResponse => {
if ( guildResponse ) {
userSettings.guilds.notMember.delete(guild);
userSettings.guilds.notAdmin.delete(guild);
Expand Down

0 comments on commit 531a7e5

Please sign in to comment.