Merge pull request 'sorted buyer types in cart popup highest price first' (#15) from staging into master
Reviewed-on: http://localhost:3000/zino/seatmapv2/pulls/15
This commit is contained in:
@@ -113,7 +113,11 @@ function addDropdownBuyerTypeOptions(inBuyerTypes: I.TypeBuyerType, inSelector:
|
|||||||
if (!inBuyerTypes)
|
if (!inBuyerTypes)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
inBuyerTypes.forEach(arr => {
|
console.log(inBuyerTypes);
|
||||||
|
|
||||||
|
inBuyerTypes.sort((a, b) => {
|
||||||
|
return <any>b[1] - <any>a[1];
|
||||||
|
}).forEach(arr => {
|
||||||
if (arr[0])
|
if (arr[0])
|
||||||
appendOption(inSelector, arr)
|
appendOption(inSelector, arr)
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user