Skip to content

Commit

Permalink
Show invoice amount in ETH. Fixes #417
Browse files Browse the repository at this point in the history
  • Loading branch information
madis committed May 13, 2024
1 parent 9da11f7 commit a7f4a9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/ethlance/ui/page/job_detail.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@
:user/name
:user/profile-image]]]]]]]]]]
result @(re/subscribe [::gql/query {:queries [invoices-query]}])
job-token-symbol (get-in result [:job :token-details :token-detail/symbol])
token-details (get-in result [:job :token-details])
invoices (map (fn [invoice]
{:name (get-in invoice [:creation-message :creator :user/name])
:amount (str (token-utils/human-amount (get invoice :invoice/amount-requested) job-token-symbol) " " job-token-symbol)
:amount (token-info/token-info-str (get invoice :invoice/amount-requested) token-details)
:timestamp (format/time-ago (new js/Date (get-in invoice [:creation-message :message/date-created])))
:status (get invoice :invoice/status)})
(-> result :job :invoices :items))]
Expand Down

0 comments on commit a7f4a9b

Please sign in to comment.