fix: hide the entire Flex-reported amp card when PowerGenius is not the selected amp type
This commit is contained in:
@@ -812,8 +812,10 @@ export function FlexPanel({ onCWSpeed, onReportRST }: { onCWSpeed?: (wpm: number
|
|||||||
</Card>
|
</Card>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* External amplifier (PowerGenius XL) — only when detected. */}
|
{/* External amplifier (PowerGenius XL) — only when the Flex reports one AND
|
||||||
{st.amp_available && (
|
PowerGenius is the selected amp type. Running an SPE Expert hides this
|
||||||
|
Flex-reported card so the two amps don't both show. */}
|
||||||
|
{st.amp_available && !isSPE && (
|
||||||
<Card icon={Flame} title={`${t('flxp.amplifier')}${st.amp_model ? ' · ' + st.amp_model : ''}`} accent="#ea580c">
|
<Card icon={Flame} title={`${t('flxp.amplifier')}${st.amp_model ? ' · ' + st.amp_model : ''}`} accent="#ea580c">
|
||||||
<div className="flex items-center gap-3">
|
<div className="flex items-center gap-3">
|
||||||
<button type="button" disabled={off}
|
<button type="button" disabled={off}
|
||||||
|
|||||||
Reference in New Issue
Block a user