Skip to content

Commit 4e9e488

Browse files
response condition order changes.
1 parent 3797563 commit 4e9e488

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/Customer/view/frontend/web/js/action

1 file changed

+3
-3
lines changed

app/code/Magento/Customer/view/frontend/web/js/action/login.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ define([
3838
});
3939
customerData.invalidate(['customer']);
4040

41-
if (redirectUrl) {
42-
window.location.href = redirectUrl;
43-
} else if (response.redirectUrl) {
41+
if (response.redirectUrl) {
4442
window.location.href = response.redirectUrl;
43+
} else if (redirectUrl) {
44+
window.location.href = redirectUrl;
4545
} else {
4646
location.reload();
4747
}

0 commit comments

Comments
 (0)