Skip to content

Commit

Permalink
Fixed: logic to display toast message on login
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Feb 15, 2024
1 parent 0e6835b commit bafa8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/UserService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const login = async (username: string, password: string): Promise <any> => {
throw "Sorry, login failed. Please try again";
}
} catch(err) {
return Promise.reject(err);
return Promise.reject("Sorry, login failed. Please try again");
}
return Promise.resolve(token)
}
Expand Down

0 comments on commit bafa8bb

Please sign in to comment.