Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

Fix state of switch for CPX #345

Merged
merged 2 commits into from
Apr 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/view/components/cpx/CpxImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ export const updateSwitch = (switchState: boolean): void => {
if (switchElement && switchInner) {
svg.addClass(switchInner, "sim-slide-switch-inner");

if (switchState) {
if (!switchState) {
svg.addClass(switchInner, "on");
switchInner.setAttribute("transform", "translate(-5,0)");
} else {
Expand Down