downgrade next.js: fixes

This commit is contained in:
Lucian Felix Ghita
2023-08-11 12:15:12 +02:00
parent ea5e8fc486
commit 0c087438e7
2 changed files with 4 additions and 2 deletions

View File

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