Merge pull request #153 from nklmantey/main
returns error message from server when add new member fails
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "plunk",
|
||||
"version": "1.0.11",
|
||||
"version": "1.0.12",
|
||||
"private": true,
|
||||
"license": "agpl-3.0",
|
||||
"workspaces": {
|
||||
|
||||
@@ -77,7 +77,10 @@ export default function Index() {
|
||||
|
||||
return "Added new member";
|
||||
},
|
||||
error: "Could not add new member!",
|
||||
error: (error) => {
|
||||
const errorMessage = error?.message || 'We could not find that user, please ask them to sign up first.'
|
||||
return errorMessage
|
||||
},
|
||||
},
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user