ordering-ui-react-native 0.23.60 → 0.23.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -291,10 +291,10 @@ export const ProductItemAccordionUI = (props: ProductItemAccordionParams) => {
|
|
|
291
291
|
)}
|
|
292
292
|
{productInfo.options.length > 0 && (
|
|
293
293
|
<ProductOptionsList>
|
|
294
|
-
{productInfo.options.
|
|
294
|
+
{productInfo.options.map((option: any) => (
|
|
295
295
|
<ProductOption key={option.id}>
|
|
296
296
|
<OText size={10} color={theme.colors.textSecondary}>{option.name}</OText>
|
|
297
|
-
{option.suboptions.map((suboption: any) => (
|
|
297
|
+
{option.suboptions.sort((a: any, b: any) => a.rank - b.rank).map((suboption: any) => (
|
|
298
298
|
<ProductSubOption key={suboption.id}>
|
|
299
299
|
<OText size={10} color={theme.colors.textThird}>
|
|
300
300
|
{getFormattedSubOptionName({
|