mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 07:26:59 +00:00
chore: Revert core changes
This commit is contained in:
parent
dbecda64c4
commit
0ea2929c31
@ -18,6 +18,7 @@ const LoginView: React.FC = () => {
|
||||
|
||||
const handleLogin = async (e: React.SyntheticEvent<EventTarget>) => {
|
||||
e.preventDefault()
|
||||
|
||||
if (!dirty && !disabled) {
|
||||
setDirty(true)
|
||||
handleValidation()
|
||||
|
@ -53,7 +53,6 @@ const WishlistCard: FC<Props> = ({ item }) => {
|
||||
await addItem({
|
||||
productId: String(product.id),
|
||||
variantId: String(product.variants[0].id),
|
||||
sizeId: String(product.variants[0].options[0].id),
|
||||
})
|
||||
openSidebar()
|
||||
setLoading(false)
|
||||
|
@ -17,6 +17,7 @@ const loginEndpoint: GetAPISchema<
|
||||
) {
|
||||
return
|
||||
}
|
||||
|
||||
try {
|
||||
const body = req.body ?? {}
|
||||
return await handlers['login']({ ...ctx, body })
|
||||
|
Loading…
x
Reference in New Issue
Block a user