Skip to content

Commit

Permalink
Merge pull request #97 from ymaheshwari1/fix/toast-on-login
Browse files Browse the repository at this point in the history
Fixed: logic to display toast message on login
  • Loading branch information
ymaheshwari1 authored Feb 15, 2024
2 parents 0e6835b + bafa8bb commit 6b43843
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 6b43843

Please sign in to comment.