Skip to content

Commit

Permalink
fix: send treatments hash on message update (#902)
Browse files Browse the repository at this point in the history
  • Loading branch information
gillycheesesteak authored Feb 8, 2023
1 parent 4d58082 commit 9f4de0b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/message/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ const Message = function({ markup, meta, parentStyles, warnings }) {
stageTag,
style,
merchantConfigHash,
channel
channel,
treatmentsHash
} = xprops;

setProps({
Expand Down Expand Up @@ -170,7 +171,8 @@ const Message = function({ markup, meta, parentStyles, warnings }) {
env,
stageTag,
merchant_config: merchantConfigHash,
channel
channel,
treatments: treatmentsHash
})
.filter(([, val]) => Boolean(val))
.reduce(
Expand Down

0 comments on commit 9f4de0b

Please sign in to comment.