diff --git a/app/settings/actions.ts b/app/settings/actions.ts index 341968a..1fe1934 100644 --- a/app/settings/actions.ts +++ b/app/settings/actions.ts @@ -18,7 +18,7 @@ export async function saveSettingsAction(prevState: any, formData: FormData) { } for (const key in validatedForm.data) { - await updateSettings(key, validatedForm.data[key as keyof typeof validatedForm.data] || "") + await updateSettings(key, validatedForm.data[key as keyof typeof validatedForm.data]) } revalidatePath("/settings") diff --git a/components/dashboard/welcome-widget.tsx b/components/dashboard/welcome-widget.tsx index 8dea39f..00dac9c 100644 --- a/components/dashboard/welcome-widget.tsx +++ b/components/dashboard/welcome-widget.tsx @@ -1,7 +1,8 @@ import { Button } from "@/components/ui/button" import { Card, CardDescription, CardTitle } from "@/components/ui/card" -import { getSettings } from "@/data/settings" -import { Banknote, ChartBarStacked, FolderOpenDot, Key, TextCursorInput } from "lucide-react" +import { getSettings, updateSettings } from "@/data/settings" +import { Banknote, ChartBarStacked, FolderOpenDot, Key, TextCursorInput, X } from "lucide-react" +import { revalidatePath } from "next/cache" import Link from "next/link" export async function WelcomeWidget() { @@ -11,7 +12,20 @@ export async function WelcomeWidget() { Logo
- Hey, I'm TaxHacker 👋 + + Hey, I'm TaxHacker 👋 + +

I'm a little accountant app that tries to help you deal with endless receipts, checks and invoices with (you diff --git a/components/export/transactions.tsx b/components/export/transactions.tsx index 2b9880f..ebad55b 100644 --- a/components/export/transactions.tsx +++ b/components/export/transactions.tsx @@ -118,7 +118,7 @@ export function ExportTransactionsDialog({

{fields.map((field) => (
-