chore: standardize quotes in pnpm-lock.yaml and clean up formatting in various files for improved readability
This commit is contained in:
@@ -62,10 +62,8 @@ function FolderDropZone({
|
||||
export default function AccountsPage() {
|
||||
const queryClient = useQueryClient();
|
||||
const { data: metadata, isLoading: isLoadingMetadata } = useBankingMetadata();
|
||||
const {
|
||||
data: accountsWithStats,
|
||||
isLoading: isLoadingAccounts,
|
||||
} = useAccountsWithStats();
|
||||
const { data: accountsWithStats, isLoading: isLoadingAccounts } =
|
||||
useAccountsWithStats();
|
||||
|
||||
// refresh function is not used directly, invalidations are done inline
|
||||
|
||||
@@ -105,12 +103,19 @@ export default function AccountsPage() {
|
||||
}),
|
||||
);
|
||||
|
||||
if (isLoadingMetadata || !metadata || isLoadingAccounts || !accountsWithStats) {
|
||||
if (
|
||||
isLoadingMetadata ||
|
||||
!metadata ||
|
||||
isLoadingAccounts ||
|
||||
!accountsWithStats
|
||||
) {
|
||||
return <LoadingState />;
|
||||
}
|
||||
|
||||
// Convert accountsWithStats to regular accounts for compatibility
|
||||
const accounts = accountsWithStats.map(({ transactionCount: _transactionCount, ...account }) => account);
|
||||
const accounts = accountsWithStats.map(
|
||||
({ transactionCount: _transactionCount, ...account }) => account,
|
||||
);
|
||||
|
||||
const formatCurrency = (amount: number) => {
|
||||
return new Intl.NumberFormat("fr-FR", {
|
||||
|
||||
Reference in New Issue
Block a user