Skip to content

Commit

Permalink
fix parse json user
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernabe committed Jul 27, 2017
1 parent 87fc9ce commit 61fbb0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class sessionService {
AsyncStorage.getItem(USER_DATA)
.then((currentUser) => {
if (currentUser) {
resolve(JSON.stringify(currentUser));
resolve(JSON.parse(currentUser));
} else {
reject('User not found');
}
Expand Down

0 comments on commit 61fbb0d

Please sign in to comment.