Bug/gh issues fiz (#1103)
* refactor: optimize page loading and data fetching * fix: resolve recurring production runtime errors * feat: add MCP company and customer updates * fix: handle year-end tax adjustments * feat: harden annual report compliance * fix: expand invoice logo and font support * fix: sanitize API route error responses * fix: sanitize user-facing error messages * feat: persist onboarding and tax assessment notices * fix: reduce cloud backup audit churn * feat: refine invoice editor layout * fix: show saved tax adjustments in INK2 * fix: complete annual report API mappings * docs: record operational safeguards and decisions * fix: harden annual report review findings * fix: adjust column span for description based on VAT registration * New css class name
This commit is contained in:
@@ -9,6 +9,7 @@ import { Badge } from '@/components/ui/badge'
|
||||
import { cn } from '@/lib/utils'
|
||||
import { AVATAR_OPTIONS } from '@/components/agent/avatars'
|
||||
import AgentAvatar from '@/components/agent/AgentAvatar'
|
||||
import { getErrorMessage as getUserErrorMessage } from '@/lib/errors/get-error-message'
|
||||
|
||||
interface InitialFields {
|
||||
entity_type_label: string
|
||||
@@ -177,7 +178,7 @@ export default function ReviewCard({
|
||||
|
||||
onVerified()
|
||||
} catch (err) {
|
||||
setVerifyError(err instanceof Error ? err.message : 'Kunde inte verifiera.')
|
||||
setVerifyError(err instanceof Error ? getUserErrorMessage(err) : 'Kunde inte verifiera.')
|
||||
} finally {
|
||||
setVerifying(false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user