chore: remove unnecessary conditions

This commit is contained in:
Aman Harwara
2022-12-08 21:12:45 +05:30
parent d4af612fea
commit 3bcd969f83

View File

@@ -186,10 +186,6 @@ const PasscodeLock = ({ application, viewControllerManager }: Props) => {
const autolockService = application.getAutolockService()
if (!autolockService && !isNativeMobileWeb) {
return null
}
return (
<>
<PreferencesGroup>
@@ -246,7 +242,7 @@ const PasscodeLock = ({ application, viewControllerManager }: Props) => {
</PreferencesSegment>
</PreferencesGroup>
{hasPasscode && !isNativeMobileWeb && autolockService && (
{hasPasscode && autolockService && (
<>
<div className="min-h-3" />
<PreferencesGroup>