Skip to content

Commit 1175341

Browse files
committed
undo removeal of if statements
1 parent b112ca7 commit 1175341

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/composables/footer.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ export const useFooter = () => {
88
const route = useRoute();
99

1010
const footerVisible = computed(() => {
11-
return (
12-
!(audioPlayer.value.file || playlistVisible.value || audioDetailPopup.value) &&
13-
(route.name === "Home" || (_footerVisible.value && route.name === "Search"))
14-
);
11+
if (audioPlayer.value.file || playlistVisible.value || audioDetailPopup.value) return false;
12+
if (route.name === "Home") return true;
13+
return _footerVisible.value && route.name === "Search";
1514
});
1615

1716
const hideFooter = () => {

0 commit comments

Comments
 (0)