Skip to content

Commit

Permalink
refactor: rename a function for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Akeboshiwind committed Dec 12, 2024
1 parent f91a604 commit 5a57ec0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cljs/xt_play/app.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
(update :query maybe-decompress))))

;; TODO: Special case existing txs
(defn- param-decode [s]
(defn- decode-txs [s]
(let [txs (-> s js/JSON.parse (js->clj :keywordize-keys true))]
(->> txs
(map #(update % :system-time (fn [d] (when d (js/Date. d))))))))
Expand All @@ -45,7 +45,7 @@
:query (or query (query/default type))}
:dispatch [::tx-batch/init
(if txs
(param-decode txs)
(decode-txs txs)
[(tx-batch/default type)])]})))

(defn ^:dev/after-load start! []
Expand Down

0 comments on commit 5a57ec0

Please sign in to comment.