Skip to content

Commit

Permalink
Update dist, existing user is 200 not 409
Browse files Browse the repository at this point in the history
  • Loading branch information
colinpannikkat committed Nov 24, 2024
1 parent bea909c commit c5eafe0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/src/content.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/popup.js

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions src/components/signupform.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ function SignupForm() {
body: JSON.stringify(payload)
})
.then(response => {
if (response.status === 409) {
return response.json()
}
if (!response.ok) {
console.error(`HTTP error! status: ${response.status}`);
chrome.runtime.sendMessage({action: "signupFailed"});
Expand All @@ -54,7 +51,7 @@ function SignupForm() {
// Alert event listener in background that form was submitted and close window
chrome.runtime.sendMessage({action: "signupComplete"});

setTimeout(() => {}, 1000);
setTimeout(() => {}, 1500);
window.close();
})
.catch(error => {
Expand Down

0 comments on commit c5eafe0

Please sign in to comment.