From 2305eb9e97b9d4bf0c66dae803c1543d7e59ab87 Mon Sep 17 00:00:00 2001 From: CenTdemeern1 Date: Mon, 4 Nov 2024 23:08:55 +0100 Subject: [PATCH] Clean up hidden check --- packages/frontend/src/components/SkFlashPlayer.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/components/SkFlashPlayer.vue b/packages/frontend/src/components/SkFlashPlayer.vue index 37be7a6183..a47197e03a 100644 --- a/packages/frontend/src/components/SkFlashPlayer.vue +++ b/packages/frontend/src/components/SkFlashPlayer.vue @@ -74,7 +74,7 @@ const props = defineProps<{ const isSensitive = computed(() => { return props.flashFile.isSensitive; }); const url = computed(() => { return props.flashFile.url; }); const comment = computed(() => { return props.flashFile.comment ?? ''; }); -let hide = ref((defaultStore.state.nsfw === 'force') ? true : isSensitive.value && (defaultStore.state.nsfw !== 'ignore')); +let hide = ref((defaultStore.state.nsfw === 'force') || isSensitive.value && (defaultStore.state.nsfw !== 'ignore')); let playerHide = ref(true); let ruffleContainer = ref(); let playPauseButtonKey = ref(0);