Skip to content

Commit 022bebb

Browse files
update customer_id (#33)
1 parent 0b6e3ea commit 022bebb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/LoginDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const LoginDialog: React.FC<AppModalLoginMainProps> = (props) => {
5555
.then((result) => {
5656
handleModalClose();
5757
setIsLoading(false);
58-
setCustomerData(result.token, result.id);
58+
setCustomerData(result.token, result.customer_id);
5959
})
6060
.catch(error => {
6161
setIsLoading(false);

src/RegistrationForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const RegistrationForm: React.FC = (props) => {
6666
.then(() => {
6767
login(values.email.toLowerCase(), values.password).then((result) => {
6868
setIsLoading(false);
69-
setCustomerData(result.token, result.id);
69+
setCustomerData(result.token, result.customer_id);
7070
history.push('/');
7171
})
7272
})

0 commit comments

Comments
 (0)