Skip to content

Commit 838679c

Browse files
committed
Merge pull request #87 from Pybite/signup
capitalization
2 parents 6ec0ffb + 43191de commit 838679c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web-client/src/pages/signup.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ export default function Signup(){
1212
biography: '',
1313
notificationPreference: '',
1414
agreeToTerms: false,
15-
subscribeToNewsletter: false
15+
subscribeToNewsLetter: false
1616
});
1717

18-
const { name, email, password, dateOfBirth, biography, notificationPreference, agreeToTerms, subscribeToNewsletter } = inputs;
18+
const { name, email, password, dateOfBirth, biography, notificationPreference, agreeToTerms, subscribeToNewsLetter } = inputs;
1919
const navigate = useNavigate()
2020

2121
const onChange = e => {
@@ -28,7 +28,7 @@ export default function Signup(){
2828

2929
const onSubmit = async (e) => {
3030
e.preventDefault();
31-
const body = { name, email, password, dateOfBirth, biography, notificationPreference, agreeToTerms, subscribeToNewsletter };
31+
const body = { name, email, password, dateOfBirth, biography, notificationPreference, agreeToTerms, subscribeToNewsLetter };
3232
try {
3333
const r = await fetch('http//localhost:3001/users', {
3434
method: 'POST',

0 commit comments

Comments
 (0)