Update ui/app/AppLayouts/Profile/views/MessagingView.qml

Simplify if statement

Co-authored-by: Lukáš Tinkl <lukast@status.im>
This commit is contained in:
Alex Jbanca 2022-11-07 17:46:27 +02:00
parent 0996ef3612
commit f20c5efe20
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ SettingsContentBase {
]
onClicked: {
showMessageLinksSwitch.toggle()
if (showMessageLinksSwitch.checked === false) {
if (!showMessageLinksSwitch.checked) {
showMessageLinksSwitch.switchOffPreviewableSites()
}
}