Skip to content

Commit

Permalink
fixed sending by pasted address
Browse files Browse the repository at this point in the history
  • Loading branch information
goranjovic committed Jan 14, 2019
1 parent a78b007 commit b5b9859
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/status_im/ui/screens/wallet/send/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,14 @@
(i18n/label :t/wrong-password)
(:message error)))
(reset! in-progress? false))
;; RESULT
(do
(re-frame/dispatch [:wallet/add-unconfirmed-transaction transaction result])
(if on-result
(re-frame/dispatch (conj on-result id result method))
(when public-key
(re-frame/dispatch [:send-transaction-message public-key flow {:address to
:asset (name symbol)
:amount amount-text
:tx-hash result}])))))))
(re-frame/dispatch [:send-transaction-message public-key flow {:address to
:asset (name symbol)
:amount amount-text
:tx-hash result}]))))))

(defn send-transaction-wrapper [{:keys [transaction password flow all-tokens in-progress? chain contact account]}]
(let [symbol (:symbol transaction)
Expand Down Expand Up @@ -249,7 +247,7 @@
;; for the recipient, we always redirect to `:wallet-transaction-sent` even when we don't
(let [send-command? (and chat-id (get-in db [:id->command ["send" #{:personal-chats}]]))]
(fx/merge cofx
#(when send-command?
#(when (and chat-id send-command?)
(commands-sending/send % chat-id send-command? params))
(navigation/navigate-to-clean :wallet-transaction-sent {:flow flow
:chat-id chat-id})))))
Expand Down

0 comments on commit b5b9859

Please sign in to comment.