diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Flow/FeedbackLog/components/CollapsibleRow.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Flow/FeedbackLog/components/CollapsibleRow.tsx index 1c1afb9859..7103438632 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Flow/FeedbackLog/components/CollapsibleRow.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/Flow/FeedbackLog/components/CollapsibleRow.tsx @@ -126,16 +126,15 @@ export const CollapsibleRow: React.FC = (item) => { userContext: "What were you doing?", }; - enum EmojiRating { - Terrible, - Poor, - Average, - Good, - Excellent, - } + const EmojiRating: Record = { + 1: "Terrible", + 2: "Poor", + 3: "Neutral", + 4: "Good", + 5: "Excellent", + }; - const feedbackScore = - item.feedbackScore && EmojiRating[item.feedbackScore + 1]; // enums are 0-indexed + const feedbackScore = EmojiRating[item.feedbackScore]; const renderContent = (key: string, value: any) => { if (key === "combinedHelp" && value) {