diff --git a/src/equicordplugins/altKrispSwitch/index.tsx b/src/equicordplugins/altKrispSwitch/index.tsx index 4d674dd66..a55216aa3 100644 --- a/src/equicordplugins/altKrispSwitch/index.tsx +++ b/src/equicordplugins/altKrispSwitch/index.tsx @@ -20,12 +20,11 @@ export default definePlugin({ } } ], - shouldCancelSuppression([enableKrisp, { section: origin }]) { - if (origin === "Noise Cancellation Popout") { + shouldCancelSuppression([enableKrisp, options]) { + if (options?.section === "Noise Cancellation Popout") { if (enableKrisp) { return false; } else { - // don't enable standard noise suppression if disabling return true; } }