fix: removed unused event

This commit is contained in:
Cristian Lungu 2024-12-10 16:44:27 +02:00
parent 24f49ca474
commit 7c2d69d388
No known key found for this signature in database
GPG Key ID: FBF86D630661E2CE
1 changed files with 0 additions and 18 deletions

View File

@ -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])))])}]]]}))