fix_:parse route response

9e7d1303...90b3d0fd
This commit is contained in:
frank 2024-08-20 15:29:05 +08:00 committed by Andrea Maria Piana
parent 411c892022
commit 0f9d276032
2 changed files with 5 additions and 6 deletions

View File

@ -518,8 +518,8 @@
(rf/reg-event-fx
:wallet/handle-suggested-routes
(fn [_ data]
(if-let [{:keys [code details]} (-> data :ErrorResponse first)]
(fn [_ [data]]
(if-let [{:keys [code details]} (-> data :ErrorResponse)]
(let [error-message (if (= code "0") "An error occurred" details)]
(log/error "failed to get suggested routes (async)"
{:event :wallet/handle-suggested-routes
@ -531,7 +531,6 @@
candidates-fix (comp ->old-route-paths
remove-invalid-bonder-fees-routes)
routes (-> data
(first)
(data-store/rpc->suggested-routes)
(update :best best-routes-fix)
(update :candidates candidates-fix))]

View File

@ -3,7 +3,7 @@
"_comment": "Instead use: scripts/update-status-go.sh <rev>",
"owner": "status-im",
"repo": "status-go",
"version": "fix/circuit-breaker-errors",
"commit-sha1": "1abe2dec4c87ff6b9ca34ad93322abd602ab0e83",
"src-sha256": "0y9csnfdmpnlb5a2imcyblzj2da02br55nqa16h9a8br4ym5q6iq"
"version": "release/0.182.x",
"commit-sha1": "90b3d0fdcc641917694dc665d44c59ae358aa363",
"src-sha256": "13pyik8wfaczjqwzp6zpw18yha5ryw38cw6jcw3mdizb21l11jy4"
}