[Fix #2590] Blank QR code on a quick double tap of the 'Show QR code'

This commit is contained in:
Foo Pang 2017-12-23 14:35:56 +08:00 committed by Andy Tudhope
parent 279ebc3173
commit e804ae25e7
1 changed files with 5 additions and 5 deletions

View File

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