From ee7ef941f5944fba77fe226f9470c049f07720b4 Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Mon, 9 Dec 2024 09:27:53 +0000 Subject: [PATCH] lint --- src/room/ReactionAudioRenderer.tsx | 2 +- src/settings/SettingsModal.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/room/ReactionAudioRenderer.tsx b/src/room/ReactionAudioRenderer.tsx index f430aea1..20a662b6 100644 --- a/src/room/ReactionAudioRenderer.tsx +++ b/src/room/ReactionAudioRenderer.tsx @@ -42,7 +42,7 @@ export function ReactionsAudioRenderer(): ReactNode { // as the browser's cache should ensure once the media is loaded // once that future fetches come via the cache. setSoundCache(prefetchSounds(soundMap)); - }, [shouldPlay]); + }, [soundCache, shouldPlay]); useEffect(() => { if (!shouldPlay || !audioEngineRef.current) { diff --git a/src/settings/SettingsModal.tsx b/src/settings/SettingsModal.tsx index c4066a5e..9d7eb5a1 100644 --- a/src/settings/SettingsModal.tsx +++ b/src/settings/SettingsModal.tsx @@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only Please see LICENSE in the repository root for full details. */ -import { ChangeEvent, FC, useCallback, useEffect, useState } from "react"; +import { ChangeEvent, FC, useCallback, useState } from "react"; import { Trans, useTranslation } from "react-i18next"; import { MatrixClient } from "matrix-js-sdk/src/matrix"; import { Root as Form, Text } from "@vector-im/compound-web";