mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-06 10:48:12 +02:00
Improve error handling in CompanySettings for mutation failure messages.
This commit is contained in:
1 parent
b19d0b6f3b
commit
1448b55ca4
1 file changed
+3
-1
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user