Skip to content

Commit bed65e1

Browse files
committed
Remvoing unecessary if statement
1 parent 2922433 commit bed65e1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/App.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ class App extends Component {
1818

1919
async componentDidMount() {
2020
try {
21-
if (await Auth.currentSession()) {
22-
this.userHasAuthenticated(true);
23-
}
21+
await Auth.currentSession();
22+
this.userHasAuthenticated(true);
2423
}
2524
catch(e) {
2625
if (e !== 'No current user') {

0 commit comments

Comments
 (0)