Skip to content

Commit

Permalink
Fix typecheck error
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Jan 8, 2025
1 parent 83a2a7b commit 41a12a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/desktop-client/src/components/accounts/Account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: '' });
}
};
Expand Down

0 comments on commit 41a12a6

Please sign in to comment.