Skip to content

Commit

Permalink
undo removeal of if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
femans committed Sep 23, 2022
1 parent d61c96a commit 379455f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/composables/footer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ export const useFooter = () => {
const route = useRoute();

const footerVisible = computed(() => {
return (
!(audioPlayer.value.file || playlistVisible.value || audioDetailPopup.value) &&
(route.name === "Home" || (_footerVisible.value && route.name === "Search"))
);
if (audioPlayer.value.file || playlistVisible.value || audioDetailPopup.value) return false;
if (route.name === "Home") return true;
return _footerVisible.value && route.name === "Search";
});

const hideFooter = () => {
Expand Down

0 comments on commit 379455f

Please sign in to comment.