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>) => {
|
const handleLogin = async (e: React.SyntheticEvent<EventTarget>) => {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
|
||||||
if (!dirty && !disabled) {
|
if (!dirty && !disabled) {
|
||||||
setDirty(true)
|
setDirty(true)
|
||||||
handleValidation()
|
handleValidation()
|
||||||
|
@ -53,7 +53,6 @@ const WishlistCard: FC<Props> = ({ item }) => {
|
|||||||
await addItem({
|
await addItem({
|
||||||
productId: String(product.id),
|
productId: String(product.id),
|
||||||
variantId: String(product.variants[0].id),
|
variantId: String(product.variants[0].id),
|
||||||
sizeId: String(product.variants[0].options[0].id),
|
|
||||||
})
|
})
|
||||||
openSidebar()
|
openSidebar()
|
||||||
setLoading(false)
|
setLoading(false)
|
||||||
|
@ -17,6 +17,7 @@ const loginEndpoint: GetAPISchema<
|
|||||||
) {
|
) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const body = req.body ?? {}
|
const body = req.body ?? {}
|
||||||
return await handlers['login']({ ...ctx, body })
|
return await handlers['login']({ ...ctx, body })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user