Skip to content

Commit

Permalink
deal with blank user name on home screen
Browse files Browse the repository at this point in the history
  • Loading branch information
alanupstone committed Apr 28, 2024
1 parent 400461c commit 793dfd7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions screens/HomeScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -1043,11 +1043,15 @@ export default HomeScreen = (props) => {
>
<Text style={baseStyles.textSignedIn}>
{userIsValidated
? `Signed in as ${userName}`
? userName
? `Signed in as ${userName}`
: `Not signed-in properly`
: 'Pocket Infoweb is only available to registered users of Tools Infoweb.'}
</Text>
<Text style={baseStyles.textSignedInSmall}>
{userIsValidated ? `${dealerName}` : null}
{userIsValidated && dealerName
? `${dealerName}`
: 'No jobs can be shown till you are signed in'}
</Text>
</View>
<Touchable
Expand Down

0 comments on commit 793dfd7

Please sign in to comment.