Skip to content

Commit

Permalink
views/Lockscreen: update posEnabled checl
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloudis committed Jan 22, 2023
1 parent 4907ada commit 6b14ea2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion views/Lockscreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ export default class Lockscreen extends React.Component<
const attemptAdminLogin: boolean =
navigation.getParam('attemptAdminLogin');

const posEnabled: boolean = settings.pos.squareEnabled || false;
const posEnabled: boolean =
(settings && settings.pos && settings.pos.squareEnabled) || false;

if (
posEnabled &&
Expand Down

0 comments on commit 6b14ea2

Please sign in to comment.