We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28b488b commit dc190b8Copy full SHA for dc190b8
1 file changed
packages/component/src/Activity/ActivityFeedback.tsx
@@ -63,13 +63,14 @@ function ActivityFeedback({ activity }: ActivityFeedbackProps) {
63
try {
64
const reactActions = (messageThing?.potentialAction || [])
65
.filter(({ '@type': type }) => type === 'LikeAction' || type === 'DislikeAction')
66
- .map(action => ({
67
- ...action,
68
- actionStatus:
69
- action['@type'] === selectedAction?.['@type'] && feedbackSubmitted
70
- ? 'CompletedActionStatus'
71
- : action.actionStatus
72
- }));
+ .map(action =>
+ action['@type'] === selectedAction?.['@type'] && feedbackSubmitted
+ ? {
+ ...action,
+ actionStatus: 'CompletedActionStatus' as const
+ }
+ : action
73
+ );
74
75
if (reactActions.length) {
76
return Object.freeze(new Set(reactActions));
0 commit comments