Skip to content

Commit

Permalink
Fix ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Nov 14, 2019
1 parent 59c3a2b commit 6ac2651
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,10 @@ const AdaptiveCardAttachment = ({ attachment: { content } }) => {
// TODO: [P3] Move from "onParseError" to "card.parse(json, errors)"
AdaptiveCard.onParseError = error => errors.push(error);

if (typeof content !== 'object') {
content = {};
}

card.parse(
stripSubmitAction({
version: '1.0',
...content
...(typeof content === 'object' ? content : {})
})
);

Expand Down

0 comments on commit 6ac2651

Please sign in to comment.