From e3dc891ed22459a8c275e6752eb854b0005ce45f Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Fri, 14 Feb 2025 16:29:28 +0100 Subject: [PATCH] Fix TS error --- packages/app/components/auth/actions.test.ts | 2 +- packages/app/components/auth/actions.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app/components/auth/actions.test.ts b/packages/app/components/auth/actions.test.ts index c95c94b..a6a04f4 100644 --- a/packages/app/components/auth/actions.test.ts +++ b/packages/app/components/auth/actions.test.ts @@ -193,7 +193,7 @@ describe('components/auth/actions', () => { }); it('should set login', () => - callThunk(login, { login: 'foo', password: '' }).then(() => { + callThunk(login, { login: 'foo' }).then(() => { expectDispatchCalls([[setLogin('foo')]]); })); }); diff --git a/packages/app/components/auth/actions.ts b/packages/app/components/auth/actions.ts index de58a1d..f0a79d3 100644 --- a/packages/app/components/auth/actions.ts +++ b/packages/app/components/auth/actions.ts @@ -79,7 +79,7 @@ export function login({ rememberMe = false, }: { login: string; - password: string; + password?: string; totp?: string; rememberMe?: boolean; }) {