fix: Fixed issue where passcode lock setting was not visible on mobile

This commit is contained in:
Aman Harwara
2022-12-08 21:00:54 +05:30
parent b068b814f2
commit d4af612fea

View File

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