From 7c2d69d388f78b567c94924b603252174ce330b9 Mon Sep 17 00:00:00 2001 From: Cristian Lungu Date: Tue, 10 Dec 2024 16:44:27 +0200 Subject: [PATCH] fix: removed unused event --- src/status_im/contexts/keycard/events.cljs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/status_im/contexts/keycard/events.cljs b/src/status_im/contexts/keycard/events.cljs index cf44162dc7..4ad871b8c0 100644 --- a/src/status_im/contexts/keycard/events.cljs +++ b/src/status_im/contexts/keycard/events.cljs @@ -130,21 +130,3 @@ {:on-cancel-event-vector [:keycard/cancel-connection]}]] (when (get-in db [:keycard :card-connected?]) [:dispatch event-vector])]}))) - -(rf/reg-event-fx - :keycard/sign - (fn [_ [data]] - {:fx [[:effects.keycard/sign data]]})) - -(rf/reg-event-fx - :keycard/sign-hash - (fn [_ [{:keys [key-uid on-success] :as data}]] - {:fx [[:dispatch - [:keycard/connect - {:key-uid key-uid - :on-success #(rf/dispatch [:keycard/sign - (assoc data - :on-success - (fn [signature] - (when on-success (on-success signature)) - (rf/dispatch [:keycard/disconnect])))])}]]]}))