Improve error handling in CompanySettings for mutation failure messages.

This commit is contained in:
JonCSykes
2026-03-06 16:47:04 -05:00
parent b19d0b6f3b
commit 1448b55ca4

View File

@@ -372,7 +372,9 @@ export function CompanySettings() {
)} )}
{generalMutation.isError && ( {generalMutation.isError && (
<span className="text-xs text-destructive"> <span className="text-xs text-destructive">
{generalMutation.error.message} {generalMutation.error instanceof Error
? generalMutation.error.message
: "Failed to save"}
</span> </span>
)} )}
</div> </div>