From bafa8bb77e36c50fa1e97a2e911e31b2ff619826 Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Thu, 15 Feb 2024 11:24:11 +0530 Subject: [PATCH] Fixed: logic to display toast message on login --- src/services/UserService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/UserService.ts b/src/services/UserService.ts index dd7f99b..4521209 100644 --- a/src/services/UserService.ts +++ b/src/services/UserService.ts @@ -20,7 +20,7 @@ const login = async (username: string, password: string): Promise => { 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) }