From c1b18105b50bedfa0e368c3607ebe1ad522f8d6e Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Tue, 3 Jun 2025 09:33:03 -0700 Subject: [PATCH] Fix log toast --- plugins/auth-oauth2/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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',