Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.41 KB | None | 0 0
  1. if (isSupported){
  2.             let userHasConditions = (account?.healthConditions.count ?? 0) > 0
  3.             if !userHasConditions{
  4.                 cleanUserContext()
  5.                 displayUserHasNoConditionsMessage()
  6.                 return
  7.             }
  8.            
  9.             didAuthenticate()
  10.             return
  11.         }
  12.        
  13.         cleanUserContext()
  14.         displayUnsupportedUserTypeMessage()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement