fix: remove duplicate/early refetch calls in BillModal sync flow
This commit is contained in:
parent
48f5577031
commit
52af533845
|
|
@ -1031,7 +1031,6 @@ export default function BillModal({ bill, initialBill, categories, onClose, onSa
|
|||
if (result.added > 0) {
|
||||
toast.success(`${result.added} payment${result.added !== 1 ? 's' : ''} imported from bank history.`);
|
||||
loadLinkedTransactions?.();
|
||||
refetch?.();
|
||||
} else {
|
||||
toast.info('No new matching transactions found.');
|
||||
}
|
||||
|
|
@ -1059,7 +1058,6 @@ export default function BillModal({ bill, initialBill, categories, onClose, onSa
|
|||
billId={sourceBill?.id}
|
||||
onRulesChanged={() => {
|
||||
setLocalHasRules(true);
|
||||
refetch?.();
|
||||
loadLinkedTransactions?.();
|
||||
}}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue