mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
downgrade next.js: fixes
This commit is contained in:
@@ -82,7 +82,8 @@ export function VariantSelector({
|
||||
aria-disabled={!isAvailableForSale}
|
||||
disabled={!isAvailableForSale}
|
||||
onClick={() => {
|
||||
router.replace(optionUrl, { scroll: false });
|
||||
// TODO: Does now work under old Next.js
|
||||
// router.replace(optionUrl, { scroll: false });
|
||||
}}
|
||||
title={`${option.name} ${value}${!isAvailableForSale ? ' (Out of Stock)' : ''}`}
|
||||
className={clsx(
|
||||
|
Reference in New Issue
Block a user