Skip to content

Commit

Permalink
Fixes #23
Browse files Browse the repository at this point in the history
  • Loading branch information
Meefish committed Nov 12, 2024
1 parent 4df120c commit d0af871
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/MessageDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const MessageDashboard: React.FC = () => {
const location = useLocation();
const { id } = useParams<{ id: string }>();

const { messages = [] } = location.state || {};
const { messages = [], experiment } = location.state || {};

const [interactionTypes, setInteractionTypes] = useState<InteractionType[]>([]);
const [filteredMessages, setFilteredMessages] = useState<Message[]>([]);
Expand Down Expand Up @@ -177,7 +177,7 @@ const MessageDashboard: React.FC = () => {

{/* Messages Title */}
<h1 className="messages-title" data-testid="messages-title">
Messages
Messages for Experiment: {experiment?.name || `Experiment ${id}`}
</h1>

{/* Filters Container */}
Expand Down

0 comments on commit d0af871

Please sign in to comment.