Improve error handling in CompanySettings for mutation failure messages.
This commit is contained in:
parent
b19d0b6f3b
commit
1448b55ca4
1 changed files with 3 additions and 1 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue