Skip to content

Commit

Permalink
fix: eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ndom91 committed Aug 11, 2024
1 parent 83d7109 commit e0e88e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/lib/components/feed-row/FeedRow.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
)
const isFeedVisible = $derived(
!!$page.data.feeds.data.find((feed: Feed) => feed.id === feedEntry.feed.id).visible,
!!$page.data.feeds.data?.find((feed: Feed) => feed.id === feedEntry.feed.id).visible,
)
const hideUnread = $derived.by(() => {
Expand All @@ -130,7 +130,7 @@
bind:this={card}
tabindex="0"
class={cn(
"grid relative gap-4 mx-2 p-4 md:mx-4 rounded-lg rounded-l-none border-l-4 border-transparent transition-all duration-300 outline-none focus:outline-none grid-cols-1 md:grid-cols-[10rem_1fr] dark:focus:bg-neutral-800/40 focus:border-neutral-500 focus:bg-neutral-100",
"relative mx-2 grid grid-cols-1 gap-4 rounded-lg rounded-l-none border-l-4 border-transparent p-4 outline-none transition-all duration-300 focus:border-neutral-500 focus:bg-neutral-100 focus:outline-none dark:focus:bg-neutral-800/40 md:mx-4 md:grid-cols-[10rem_1fr]",
!isFeedVisible && "hidden",
hideUnread && "hidden",
)}
Expand Down
8 changes: 4 additions & 4 deletions apps/web/src/routes/(dashboard)/feeds/tts.svelte.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useInterface } from "$lib/state/ui.svelte"
import { TTSLocation, useInterface } from "$lib/state/ui.svelte"
import ttsWorkerUrl from "$lib/transformers/tts-worker?url"

const ui = useInterface()
Expand All @@ -9,7 +9,7 @@ export const registerTtsWorker = () => {
$effect(() => {
if (
!ui.aiFeaturesPreferences.tts.enabled
|| ui.aiFeaturesPreferences.tts.location !== uiSvelte.TTSLocation.Browser
|| ui.aiFeaturesPreferences.tts.location !== TTSLocation.Browser
) {
return
}
Expand Down Expand Up @@ -65,7 +65,7 @@ export const handleGenerateSpeech = async (text: string) => {
if (!ui.aiFeaturesPreferences.tts.enabled) {
return
}
if (ui.aiFeaturesPreferences.tts.location === uiSvelte.TTSLocation.Server) {
if (ui.aiFeaturesPreferences.tts.location === TTSLocation.Server) {
const ttsResponse = await fetch("/api/v1/tts", {
method: "POST",
headers: {
Expand All @@ -85,7 +85,7 @@ export const handleGenerateSpeech = async (text: string) => {
if (
!ttsWorker
|| !ui.aiFeaturesPreferences.tts.enabled
|| ui.aiFeaturesPreferences.tts.location !== uiSvelte.TTSLocation.Browser
|| ui.aiFeaturesPreferences.tts.location !== TTSLocation.Browser
) {
return
}
Expand Down

0 comments on commit e0e88e5

Please sign in to comment.