fix: hide the entire Flex-reported amp card when PowerGenius is not the selected amp type

This commit is contained in:
2026-07-21 00:57:16 +02:00
parent 42a6b9c76a
commit 78220e700f
+4 -2
View File
@@ -812,8 +812,10 @@ export function FlexPanel({ onCWSpeed, onReportRST }: { onCWSpeed?: (wpm: number
</Card>
)}
{/* External amplifier (PowerGenius XL) — only when detected. */}
{st.amp_available && (
{/* External amplifier (PowerGenius XL) — only when the Flex reports one AND
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">
<div className="flex items-center gap-3">
<button type="button" disabled={off}