Update index.tsx
This commit is contained in:
@@ -40,12 +40,12 @@ export default function Me() {
|
|||||||
* 4. profile edit? nah not needed...just keep current separate page
|
* 4. profile edit? nah not needed...just keep current separate page
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var fullCleanPageContent: ReactElement = undefined;
|
let fullCleanPageContent: ReactElement | undefined = undefined;
|
||||||
if (currPage === QueryRoutes.search) {
|
if (currPage === QueryRoutes.search) {
|
||||||
fullCleanPageContent = <SearchResults />;
|
fullCleanPageContent = <SearchResults />;
|
||||||
} else if (currPage === QueryRoutes.createConvo) {
|
} else if (currPage === QueryRoutes.createConvo) {
|
||||||
fullCleanPageContent = <CreateConversation />;
|
fullCleanPageContent = <CreateConversation />;
|
||||||
} else if (currConvo) {
|
} else if (currConvo && typeof currConvo === "string") {
|
||||||
fullCleanPageContent = <ViewConvo conversationId={currConvo} />;
|
fullCleanPageContent = <ViewConvo conversationId={currConvo} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user