[#20524] fix: the missed keypairs are shown in the key pair list screen (#20888)

This commit is contained in:
Mohsen 2024-07-26 19:11:01 +03:30 committed by GitHub
parent a671c70838
commit a6d3fc3742
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -73,7 +73,7 @@
[]
(let [compressed-key (rf/sub [:profile/compressed-key])
customization-color (rf/sub [:profile/customization-color])
keypairs (rf/sub [:wallet/keypairs-list])
keypairs (rf/sub [:wallet/fully-operable-keypairs-list])
selected-keypair (rf/sub [:wallet/selected-keypair-uid])
profile-picture (rf/sub [:profile/image])
[selected-key-uid set-selected-key-uid] (rn/use-state selected-keypair)]

View File

@ -207,6 +207,12 @@
(fn [{:keys [keypairs]}]
(vals keypairs)))
(rf/reg-sub
:wallet/fully-operable-keypairs-list
:<- [:wallet/keypairs-list]
(fn [keypairs]
(filter #(= :fully (:lowest-operability %)) keypairs)))
(rf/reg-sub
:wallet/keypair-names
:<- [:wallet/keypairs-list]