bugfixes
This commit is contained in:
@@ -37,15 +37,18 @@ export function initFeeDropdown(w) {
|
||||
function updateFeeDropdown() {
|
||||
if (feeDropdown===null) return
|
||||
const symbolItem = useChartOrderStore().selectedSymbol
|
||||
const feeOpts = {
|
||||
items: symbolItem.pools.map((p)=> {
|
||||
let items
|
||||
if (symbolItem===null)
|
||||
items = [{title: '0.00%'}]
|
||||
else {
|
||||
items = symbolItem.pools.map((p)=> {
|
||||
return {
|
||||
title: (p[1]/10000).toFixed(2)+'%',
|
||||
onSelect: ()=>selectPool(p),
|
||||
}
|
||||
})
|
||||
}
|
||||
feeDropdown.applyOptions(feeOpts)
|
||||
feeDropdown.applyOptions({items})
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user