Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarBasem committed Jan 9, 2024
1 parent fce0a17 commit 4c38c82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/status_im/contexts/wallet/send/routes/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
(defn view
[{:keys [amount routes]}]
(let [loading-suggested-routes? (rf/sub [:wallet/wallet-send-loading-suggested-routes?])
candidates (:Candidates routes)]
candidates (:candidates routes)]
(if (and (not loading-suggested-routes?) (not-empty candidates))
[rn/flat-list
{:data candidates
Expand All @@ -44,8 +44,8 @@
[route-item
{:amount amount
:status :default
:from-network (utils/id->network (get-in route [:From :chainId]))
:to-network (utils/id->network (get-in route [:To :chainId]))}])}]
:from-network (utils/id->network (get-in route [:from :chain-id]))
:to-network (utils/id->network (get-in route [:to :chain-id]))}])}]
[rn/view {:style style/empty-container}
(if loading-suggested-routes?
[rn/activity-indicator]
Expand Down
5 changes: 1 addition & 4 deletions translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2456,10 +2456,7 @@
"from-label": "From",
"to-label": "To",
"oops-wrong-word": "Oops! Wrong word",
<<<<<<< HEAD
"time-in-mins": "{{minutes}} min",
"amount-with-currency-symbol": "{{symbol}} {{amount}}"
=======
"amount-with-currency-symbol": "{{symbol}} {{amount}}",
"no-routes-found": "No routes found"
>>>>>>> 2ea1e4b1d (wallet: suggested routes list)
}

0 comments on commit 4c38c82

Please sign in to comment.