From d380ac7a82184a6a56a4d597465441bbd01b27fa Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Sun, 2 Jun 2024 10:06:04 -0300 Subject: [PATCH] refactor: remove logging errors, indentation --- src/actions/interactions.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/actions/interactions.ts b/src/actions/interactions.ts index 43152f8dd..a8960e607 100644 --- a/src/actions/interactions.ts +++ b/src/actions/interactions.ts @@ -314,7 +314,7 @@ const undislikeFail = (status: StatusEntity, error: unknown) => ({ skipLoading: true, }); -const zap = (status: StatusEntity, amount: number, comment:string) => (dispatch: AppDispatch, getState: () => RootState) => { +const zap = (status: StatusEntity, amount: number, comment: string) => (dispatch: AppDispatch, getState: () => RootState) => { if (!isLoggedIn(getState)) return; dispatch(zapRequest(status)); @@ -330,11 +330,9 @@ const zap = (status: StatusEntity, amount: number, comment:string) => (dispatch: dispatch(zapSuccess(status)); return undefined; } catch (e) { // In case it fails we just return the invoice so the QR code can be created - console.log(e); return invoice; } }).catch(function(e) { - console.log(e); dispatch(zapFail(status, e)); }); };