Skip to content

Commit

Permalink
Merge pull request #1486 from ThatConference/next/feature
Browse files Browse the repository at this point in the history
Promote Next/feature to production
  • Loading branch information
brettski authored Oct 17, 2023
2 parents 4684ddd + c78d61c commit 9c56986
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "that-us",
"version": "3.14.1",
"version": "3.14.2",
"description": "THAT.us website",
"main": "index.js",
"type": "module",
Expand Down
14 changes: 12 additions & 2 deletions src/_dataSources/api.that.tech/partner/leads/mutations.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,18 @@ export default (fetch) => {
let results;

if (data) {
const { add } = data.partners.us.leads;
results = add;
if (data.partners.us?.leads) {
const add = data.partners.us.leads;
results = add;
} else {
let message = 'There was an issue saving the lead';
if (errors) message = errors[0]?.message ?? message;

results = {
message,
result: false
};
}
}

return results;
Expand Down

1 comment on commit 9c56986

@vercel
Copy link

@vercel vercel bot commented on 9c56986 Oct 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.