Skip to content

Commit

Permalink
Merge pull request #30 from vtex-apps/fix/missing-spread
Browse files Browse the repository at this point in the history
Fix marker interpolation
  • Loading branch information
kaisermann authored Nov 13, 2020
2 parents 88d9276 + bf4b3ae commit f0a6eee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Marker interpolation bug introduced on `0.7.2`.

## [0.7.2] - 2020-11-12
### Changed
Expand Down
2 changes: 1 addition & 1 deletion react/IOMessageWithMarkers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const IOMessageWithMarkers: IOMessageWithMarkersType = ({
const markerComponents = markers.reduce((acc, marker) => {
// for more information check https://github.com/formatjs/react-intl/blob/master/docs/Components.md#rich-text-formatting
// eslint-disable-next-line react/display-name
acc[marker] = (chunks) => (
acc[marker] = (...chunks) => (
<span key={marker} className={handles[`${handleBase}-${marker}`]}>
{chunks}
</span>
Expand Down

0 comments on commit f0a6eee

Please sign in to comment.