This commit is contained in:
Silent YANG 2024-02-12 18:53:40 +08:00
parent 0d28b906f7
commit 124172f6f0

View file

@ -198,8 +198,8 @@ const changeSat = async (sat: any) => {
freqFlag = true
state.tx = parseFloat(e.uplink)
state.rx = parseFloat(e.downlink)
state.txTone = parseFloat(state.CTCSSOption.reduce((_e: any)=>{
return e.mode.indexOf(_e) != -1 ? _e : 0
state.txTone = parseFloat(state.CTCSSOption.reduce((_e: any, _n: any)=>{
return e.mode.indexOf(_n) != -1 ? _n : _e
}))
}
})