Client: Teams page basic

This commit is contained in:
Barry Low committed 2018-09-14 01:14:24 -07:00
1 parent 758e5bdb83
commit ba5a321127
15 files changed
+286 -95

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ const ErrorResponse = {
'unique constraint': 'Sorry, already taken! Please create a unique '
}
export const checkGraphQLError = (error) => {
export const checkGraphQLError = error => {
console.log('checkGraphQLError ', ErrorResponse)
if (error.search(/unique constraint/)) {
const field = error.substring(error.indexOf('=') + 1)