Skip to content

Commit

Permalink
chore(feeling): update calculation
Browse files Browse the repository at this point in the history
joy & trust are now the only positive choices
  • Loading branch information
benzend committed Dec 6, 2024
1 parent 926307f commit 37cb379
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions lib/glare/ux_metrics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,7 @@ def parse
end

def result
@result ||= choices[:anticipation].to_f +
choices[:surprise].to_f +
choices[:joy].to_f +
@result ||= choices[:joy].to_f +
choices[:trust].to_f -
choices[:anger].to_f -
choices[:disgust].to_f -
Expand Down Expand Up @@ -756,4 +754,4 @@ def in_hotspot?
end
end
end
end
end
4 changes: 2 additions & 2 deletions lib/glare/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Glare
module UxMetrics
VERSION = "0.2.7"
VERSION = "0.2.8"
end
end
end

0 comments on commit 37cb379

Please sign in to comment.