From 34c2b932daba73b0d7bcc145abdbf6b1eaca9788 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Wed, 25 Oct 2023 09:19:00 +0100 Subject: [PATCH] Load user version of roadmap --- src/components/CreateVersion/CreateVersion.tsx | 2 +- .../CustomRoadmap/PersonalRoadmapList.tsx | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/CreateVersion/CreateVersion.tsx b/src/components/CreateVersion/CreateVersion.tsx index c206af64b..39fc3bb47 100644 --- a/src/components/CreateVersion/CreateVersion.tsx +++ b/src/components/CreateVersion/CreateVersion.tsx @@ -81,7 +81,7 @@ export function CreateVersion(props: CreateVersionProps) { ); } - if (!isLoading && userVersion) { + if (!isLoading && userVersion?._id) { return (
- - Visit + + Edit - - Edit + + Visit