Skip to content

Commit

Permalink
feat: ensure Login calls Display to show error with correct options
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorverasm committed Feb 2, 2021
1 parent 47a745b commit f23e273
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/presentation/pages/login/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,13 @@ const Login: React.FC<LoginProps> = ({
navigation.navigate('Home');
} catch (error) {
setLoading(false);
await display.show({title: 'Oops!', description: error.message});
await display.show(
{title: 'Oops!', description: error.message},
{
appearance: 'floating',
type: 'danger',
},
);
}
};

Expand Down

0 comments on commit f23e273

Please sign in to comment.