diff --git a/frontend/app/components/UsabilityTesting/LiveTestsModal.tsx b/frontend/app/components/UsabilityTesting/LiveTestsModal.tsx
index 9657bec1d..a99ffa9ca 100644
--- a/frontend/app/components/UsabilityTesting/LiveTestsModal.tsx
+++ b/frontend/app/components/UsabilityTesting/LiveTestsModal.tsx
@@ -6,7 +6,7 @@ import SessionItem from 'Shared/SessionItem';
import { Pagination } from 'UI';
import { observer } from 'mobx-react-lite';
-function LiveTestsModal({ testId }: { testId: string }) {
+function LiveTestsModal({ testId, closeModal }: { testId: string, closeModal: () => void }) {
const [page, setPage] = React.useState(1);
const [userId, setUserId] = React.useState('');
const { uxtestingStore } = useStore();
@@ -32,7 +32,7 @@ function LiveTestsModal({ testId }: { testId: string }) {
/>
{uxtestingStore.testAssistSessions.list.map((s: any) => (
-
+
))}
diff --git a/frontend/app/components/UsabilityTesting/TestEdit.tsx b/frontend/app/components/UsabilityTesting/TestEdit.tsx
index 4d9a8eb56..69fc19d47 100644
--- a/frontend/app/components/UsabilityTesting/TestEdit.tsx
+++ b/frontend/app/components/UsabilityTesting/TestEdit.tsx
@@ -121,7 +121,7 @@ function TestEdit() {
},
{
label: uxtestingStore.instance.title,
- to: withSiteId(usabilityTestingView(testId), siteId),
+ to: isPublished ? withSiteId(usabilityTestingView(testId), siteId) : undefined,
},
{
label: 'Edit',
diff --git a/frontend/app/components/UsabilityTesting/TestOverview.tsx b/frontend/app/components/UsabilityTesting/TestOverview.tsx
index 01d0a5237..5fbbeca30 100644
--- a/frontend/app/components/UsabilityTesting/TestOverview.tsx
+++ b/frontend/app/components/UsabilityTesting/TestOverview.tsx
@@ -63,7 +63,7 @@ const menuItems = [
function TestOverview() {
// @ts-ignore
const { siteId, testId } = useParams();
- const { showModal } = useModal();
+ const { showModal, hideModal } = useModal();
const { uxtestingStore } = useStore();
usePageTitle(`Usability Tests | ${uxtestingStore.instance?.title || ''}`);
@@ -105,7 +105,7 @@ function TestOverview() {
the moment.
- {uxtestingStore.instance!.description}
+ {truncatedDescr}
+ {uxtestingStore.instance.description.length > 250 ? (
setTruncate(!truncate)}>{truncate ? 'Show more' : 'Show less'}
) : null}
);
});