fix bug for untoggle tuning

This commit is contained in:
talksik
2022-05-09 05:25:53 -05:00
parent 274e35361d
commit 65acb2411b
@@ -119,7 +119,8 @@ export default function NirvanaTerminal() {
const handleToggleTuneToLine = useCallback(
(lineId: string, turnToggleOn: boolean) => {
if (toggleTunedLines?.length >= 3) {
// inhibit if they are trying to turn on and already have 3 toggle tuned
if (toggleTunedLines?.length >= 3 && turnToggleOn) {
toast.error("You cannot toggle more than 3 lines!");
return;