[fix] remove mnemonic from current-account map

current-account is duplicated in `:qr-modal` key when tapping on `share my
profile` button in the Profile screen
this removes the mnemonic from the duplicated data so that it does persist
there after user backed up his mnemonic
this was only happening until logging out/restarting the app

Signed-off-by: yenda <eric@status.im>
This commit is contained in:
yenda 2019-01-18 14:59:10 +01:00
parent e87464e5ba
commit f17229c4e2
No known key found for this signature in database
GPG Key ID: 0095623C0069DCE6
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@
[react/view (merge action-button.styles/actions-list
styles/share-contact-code-container)
[button/secondary-button {:on-press #(re-frame/dispatch [:navigate-to :profile-qr-viewer
{:contact current-account
{:contact (dissoc current-account :mnemonic)
:source :public-key
:value public-key}])
:style styles/share-contact-code-button