From ec51b5c17c3f44f1ed25f431c2addffc6ca8a193 Mon Sep 17 00:00:00 2001 From: Jennifer Chen Date: Wed, 25 Oct 2023 10:12:39 -0700 Subject: [PATCH] Clean up --- src/pages/user/libraries/[[...id]].tsx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/pages/user/libraries/[[...id]].tsx b/src/pages/user/libraries/[[...id]].tsx index 529c19e89..06d3c9c66 100644 --- a/src/pages/user/libraries/[[...id]].tsx +++ b/src/pages/user/libraries/[[...id]].tsx @@ -55,9 +55,18 @@ const LibrariesHome: NextPage = ({ id, subpage }) => { } /> )} - {!!id && !!library && !subpage && } - {!!id && !!library && subpage === 'settings' && } - {!id && } + + {!!id && !!library ? ( + <> + {subpage === 'settings' ? ( + + ) : ( + + )} + + ) : ( + <>{!id ? : null} + )} ); };