From 41a12a6b0d8754029122b66809716d4439ccc5d9 Mon Sep 17 00:00:00 2001 From: Joel Jeremy Marquez Date: Wed, 8 Jan 2025 13:44:25 -0800 Subject: [PATCH] Fix typecheck error --- packages/desktop-client/src/components/accounts/Account.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/desktop-client/src/components/accounts/Account.tsx b/packages/desktop-client/src/components/accounts/Account.tsx index b13e7b645ee..3ce3468f361 100644 --- a/packages/desktop-client/src/components/accounts/Account.tsx +++ b/packages/desktop-client/src/components/accounts/Account.tsx @@ -743,7 +743,9 @@ class AccountInternal extends PureComponent< const account = this.props.accounts.find( account => account.id === this.props.accountId, ); - this.props.dispatch(updateAccount({ account: { ...account, name } })); + this.props.dispatch( + updateAccount({ account: { ...account, name } as AccountEntity }), + ); this.setState({ editingName: false, nameError: '' }); } };