Improve error handling in CompanySettings for mutation failure messages.

This commit is contained in:
JonCSykes committed 2026-03-06 16:47:04 -05:00
1 parent b19d0b6f3b
commit 1448b55ca4
1 file changed
+3 -1
+3 -1
View File
@@ -372,7 +372,9 @@ export function CompanySettings() {
)}
{generalMutation.isError && (
<span className="text-xs text-destructive">
{generalMutation.error.message}
{generalMutation.error instanceof Error
? generalMutation.error.message
: "Failed to save"}
</span>
)}
</div>