Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Retail-app]Add mergeBasket hook #1114

Merged
merged 15 commits into from
Apr 11, 2023
Merged
Prev Previous commit
Next Next commit
Merge branch 'v3' into feat/add-merge-basket-hook
alexvuong committed Apr 10, 2023

Verified

This commit was signed with the committer’s verified signature.
alexvuong Alex Vuong
commit d35bf98aba24341d1fe2f27cbbdc672589acf63d
5 changes: 4 additions & 1 deletion packages/template-retail-react-app/app/pages/login/index.jsx
Original file line number Diff line number Diff line change
@@ -77,7 +77,10 @@ const Login = () => {
})
}
} catch (error) {
console.error(error)
const message = /Unauthorized/i.test(error.message)
? formatMessage(LOGIN_ERROR_MESSAGE)
: formatMessage(API_ERROR_MESSAGE)
form.setError('global', {type: 'manual', message})
}
}
useEffect(() => {
You are viewing a condensed version of this merge commit. You can view the full changes here.