Skip to content

Commit

Permalink
Fix typecheck errors
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Mar 1, 2025
1 parent 30818b3 commit 3d168d7
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 15 deletions.
20 changes: 16 additions & 4 deletions packages/desktop-client/src/components/banksync/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Trans, useTranslation } from 'react-i18next';
import { Text } from '@actual-app/components/text';
import { View } from '@actual-app/components/view';

import { pushModal } from 'loot-core/src/client/actions/modals';
import { pushModal } from 'loot-core/client/modals/modalsSlice';
import {
type BankSyncProviders,
type AccountEntity,
Expand Down Expand Up @@ -80,13 +80,25 @@ export function BankSync() {
switch (action) {
case 'edit':
dispatch(
pushModal('synced-account-edit', {
account,
pushModal({
modal: {
name: 'synced-account-edit',
options: {
account,
},
},
}),
);
break;
case 'link':
dispatch(pushModal('add-account', { upgradingAccountId: account.id }));
dispatch(
pushModal({
modal: {
name: 'add-account',
options: { upgradingAccountId: account.id },
},
}),
);
break;
default:
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,17 +331,17 @@ function TransactionListWithPreviews({
}),
);
},
},
onComplete: async transactionId => {
const parts = transactionId.split('/');
await send('schedule/update', {
schedule: { id: parts[1], completed: true },
});
dispatch(
collapseModals({
rootModalName: 'scheduled-transaction-menu',
}),
);
onComplete: async transactionId => {
const parts = transactionId.split('/');
await send('schedule/update', {
schedule: { id: parts[1], completed: true },
});
dispatch(
collapseModals({
rootModalName: 'scheduled-transaction-menu',
}),
);
},
},
},
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ export function SelectedTransactionsButton({
<SelectedItemsButton
id="transactions"
name={count => t('{{count}} transactions', { count })}
// @ts-expect-error fix me
items={[
...(!types.trans
? [
Expand Down

0 comments on commit 3d168d7

Please sign in to comment.