From e804ae25e716b172e06ed95f25cff9d6daa269f0 Mon Sep 17 00:00:00 2001 From: Foo Pang Date: Sat, 23 Dec 2017 14:35:56 +0800 Subject: [PATCH] [Fix #2590] Blank QR code on a quick double tap of the 'Show QR code' --- src/status_im/ui/screens/profile/navigation.cljs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/status_im/ui/screens/profile/navigation.cljs b/src/status_im/ui/screens/profile/navigation.cljs index 7ce454f355..5eabd207dc 100644 --- a/src/status_im/ui/screens/profile/navigation.cljs +++ b/src/status_im/ui/screens/profile/navigation.cljs @@ -3,8 +3,8 @@ (defmethod navigation/preload-data! :qr-code-view [{:accounts/keys [current-account-id] :as db} [_ _ {:keys [contact qr-source qr-value amount?]}]] - (assoc db :qr-modal {:contact (or contact - (get-in db [:accounts/accounts current-account-id])) - :qr-source qr-source - :qr-value qr-value - :amount? amount?})) + (update db :qr-modal #(merge % {:contact (or contact + (get-in db [:accounts/accounts current-account-id])) + :qr-source qr-source + :qr-value qr-value + :amount? amount?})))