chore: standardize quotes in pnpm-lock.yaml and clean up formatting in various files for improved readability
This commit is contained in:
@@ -12,10 +12,7 @@ import { useQueryClient } from "@tanstack/react-query";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { Sparkles, RefreshCw } from "lucide-react";
|
||||
import {
|
||||
updateCategory,
|
||||
autoCategorize,
|
||||
} from "@/lib/store-db";
|
||||
import { updateCategory, autoCategorize } from "@/lib/store-db";
|
||||
import {
|
||||
normalizeDescription,
|
||||
suggestKeyword,
|
||||
@@ -33,7 +30,7 @@ interface TransactionGroup {
|
||||
export default function RulesPage() {
|
||||
const queryClient = useQueryClient();
|
||||
const { data: metadata, isLoading: isLoadingMetadata } = useBankingMetadata();
|
||||
|
||||
|
||||
// Fetch uncategorized transactions only
|
||||
const {
|
||||
data: transactionsData,
|
||||
@@ -260,7 +257,12 @@ export default function RulesPage() {
|
||||
[refresh],
|
||||
);
|
||||
|
||||
if (isLoadingMetadata || !metadata || isLoadingTransactions || !transactionsData) {
|
||||
if (
|
||||
isLoadingMetadata ||
|
||||
!metadata ||
|
||||
isLoadingTransactions ||
|
||||
!transactionsData
|
||||
) {
|
||||
return <LoadingState />;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user