fix visibility after adding contact, and some messaging

This commit is contained in:
2024-01-15 12:06:33 -07:00
parent 6ab4c40fd0
commit 32c9076c39
6 changed files with 20 additions and 11 deletions

View File

@@ -449,13 +449,14 @@ export async function createAndSubmitClaim(
} catch (error: any) {
console.error("Error creating claim:", error);
const errorMessage: string =
error.response?.data?.error?.message || error.message || "Unknown error";
error.response?.data?.error?.message ||
error.message ||
"Got some error submitting the claim. Check your permissions, network, and error logs.";
return {
type: "error",
error: {
error: errorMessage,
userMessage: "Failed to create and submit the claim.",
},
};
}