diff --git a/plugins/auth-oauth2/src/index.ts b/plugins/auth-oauth2/src/index.ts index 85874a04..6ba52649 100644 --- a/plugins/auth-oauth2/src/index.ts +++ b/plugins/auth-oauth2/src/index.ts @@ -114,8 +114,8 @@ export const plugin: PluginDefinition = { { label: 'Toggle Debug Logs', async onSelect(ctx) { - const enableLogs = await ctx.store.get('enable_logs'); - await ctx.store.set('enable_logs', !enableLogs); + const enableLogs = !(await ctx.store.get('enable_logs')); + await ctx.store.set('enable_logs', enableLogs); await ctx.toast.show({ message: `Debug logs ${enableLogs ? 'enabled' : 'disabled'}`, color: 'info',