chore: Revert core changes

This commit is contained in:
Alessandro Casazza 2022-01-11 09:53:00 +01:00
parent dbecda64c4
commit 0ea2929c31
No known key found for this signature in database
GPG Key ID: 3AF41B06C6495D3D
3 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ const LoginView: React.FC = () => {
const handleLogin = async (e: React.SyntheticEvent<EventTarget>) => {
e.preventDefault()
if (!dirty && !disabled) {
setDirty(true)
handleValidation()

View File

@ -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)

View File

@ -17,6 +17,7 @@ const loginEndpoint: GetAPISchema<
) {
return
}
try {
const body = req.body ?? {}
return await handlers['login']({ ...ctx, body })