diff options
| author | FIN-IT_AndriFP <andrifebriyadiputra@gmail.com> | 2026-01-30 09:52:57 +0700 |
|---|---|---|
| committer | FIN-IT_AndriFP <andrifebriyadiputra@gmail.com> | 2026-01-30 09:52:57 +0700 |
| commit | d74edefd0226cb192be55cad005378ca7ca084a6 (patch) | |
| tree | 78d6ca38c537dda2bf8d84887e4c2519c53877a2 /src-migrate | |
| parent | 5061031d3e2be4efb501809d725c3287fa1ba5e2 (diff) | |
fix dropdown variant information
Diffstat (limited to 'src-migrate')
| -rw-r--r-- | src-migrate/modules/product-detail/components/Information.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src-migrate/modules/product-detail/components/Information.tsx b/src-migrate/modules/product-detail/components/Information.tsx index 900225a5..ce848267 100644 --- a/src-migrate/modules/product-detail/components/Information.tsx +++ b/src-migrate/modules/product-detail/components/Information.tsx @@ -178,7 +178,10 @@ const Information = ({ product }: Props) => { .map((option, cid) => ( <AutoCompleteItem key={option.id} - value={String(option.id)} + // value={String(option.id)} + value={option.code + + (option.attributes?.[0] ? ` - ${option.attributes[0]}` : '') + } _selected={ option.id === selectedVariant?.id ? { bg: 'gray.300' } |
