File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
src/status_im/ui/screens/wallet/send Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 277
277
::transaction-completed
278
278
(fn [{db :db now :now } [_ {:keys [id response] :as params} modal?]]
279
279
(let [{:keys [hash error]} response
280
- {:keys [method]} (get-in db [:wallet :send-transaction ])
280
+ {:keys [method from-chat? ]} (get-in db [:wallet :send-transaction ])
281
281
db' (assoc-in db [:wallet :send-transaction :in-progress? ] false )]
282
282
(if (and error (string? error) (not (string/blank? error))) ; ; ignore error here, error will be handled in :transaction-failed
283
283
{:db db'}
289
289
(update-in [:wallet :transactions-unsigned ] dissoc id)
290
290
true
291
291
(update-in [:wallet :send-transaction ] merge clear-send-properties {:tx-hash hash}))}
292
- (if modal?
292
+ (cond
293
+ modal?
293
294
(cond-> {:dispatch [:navigate-back ]}
294
295
(= method constants/web3-send-transaction)
295
296
(assoc :dispatch-later [{:ms 400 :dispatch [:navigate-to-modal :wallet-transaction-sent-modal ]}]))
296
- {:dispatch [:execute-stored-command ]}))))))
297
+
298
+ from-chat?
299
+ {:dispatch [:execute-stored-command ]}
300
+
301
+ :else
302
+ {:dispatch [:navigation-replace :wallet-transaction-sent ]}))))))
297
303
298
304
(defn on-transactions-modal-completed [raw-results]
299
305
(let [result (types/json->clj raw-results)]
You can’t perform that action at this time.
0 commit comments