Skip to content

Commit

Permalink
Merge pull request #279 from lsst-epo/EPO-7830
Browse files Browse the repository at this point in the history
1.2.7 patch
  • Loading branch information
ericdrosas87 authored Mar 16, 2023
2 parents 7b11604 + 8c25aba commit 4ebe2a7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
9 changes: 3 additions & 6 deletions components/global/Footer/ContactForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ async function postFormData(data) {
const objectifiedData = Object.fromEntries(data);
const body = JSON.stringify({
...objectifiedData,
fromName: "",
message: {
body: objectifiedData.message,
Topic: objectifiedData.topic,
Expand Down Expand Up @@ -46,12 +47,8 @@ function ContactForm({ topics = [], className }) {
const formData = new FormData(event.target);

await postFormData(formData)
.then((data) => {
if (data.success) {
setStatus("success");
} else {
setStatus("error");
}
.then(() => {
setStatus("success");
})
.catch((error) => {
setStatus("error");
Expand Down
12 changes: 5 additions & 7 deletions lib/api/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,19 +131,17 @@ export async function registerEducator({
registerEducators(
email: "${email}"
password: "${password}"
firstName: "${firstName}"
lastName: "${lastName}"
) {
jwt
jwtExpiresAt
refreshToken
refreshTokenExpiresAt
fullName: "${firstName} ${lastName}") {
user {
status
... on User {
requestDeletion
}
}
jwt
jwtExpiresAt
refreshToken
refreshTokenExpiresAt
}
}
`;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rubin-client",
"version": "1.2.5",
"version": "1.2.7",
"private": true,
"repository": {
"type": "git",
Expand Down

0 comments on commit 4ebe2a7

Please sign in to comment.