feat: update button visibility logic to check variant length in ProductCreate and ProductEdit components
This commit is contained in:
parent
8ea9378c78
commit
b0cb117e60
@ -608,8 +608,8 @@ export default function ProductCreate({ categories }: Props) {
|
||||
</Button>
|
||||
</>
|
||||
)}
|
||||
{variantIndex >
|
||||
0 && (
|
||||
{variants.length >
|
||||
1 && (
|
||||
<Button
|
||||
type="button"
|
||||
variant="outline"
|
||||
|
||||
@ -665,8 +665,8 @@ export default function ProductEdit({ product, categories }: Props) {
|
||||
</Button>
|
||||
</>
|
||||
)}
|
||||
{variantIndex >
|
||||
0 && (
|
||||
{variants.length >
|
||||
1 && (
|
||||
<Button
|
||||
type="button"
|
||||
variant="outline"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user