diff --git a/desktop/src-common/advent/actions.clj b/desktop/src-common/advent/actions.clj index 2019b8b1..230046b3 100644 --- a/desktop/src-common/advent/actions.clj +++ b/desktop/src-common/advent/actions.clj @@ -290,7 +290,9 @@ (defn remove-item [entities item] (run-action entities (begin [this screen entities] - (update-in entities [:state :inventory] #(remove (partial = item) %))) + (-> entities + (update-in [:state :inventory] #(remove (partial = item) %)) + (assoc-in [:cursor :current] :main))) (continue [this screen entities] entities)