Skip to content

Commit 097e12d

Browse files
committed
fix: correct remaining VIDEO_VOLUME_KEY reference and add useEffect import
1 parent 1a4af27 commit 097e12d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/components/media/Video.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function PersistedVolumeVideo({
1818
const innerRef = useRef<HTMLVideoElement>(null);
1919

2020
useEffect(() => {
21-
const stored = localStorage.getItem(VIDEO_VOLUME_KEY);
21+
const stored = localStorage.getItem(MEDIA_VOLUME_KEY);
2222
if (innerRef.current && stored !== null) {
2323
const parsed = parseFloat(stored);
2424
if (!Number.isNaN(parsed)) innerRef.current.volume = parsed;

src/app/components/message/content/AudioContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable jsx-a11y/media-has-caption */
2-
import { ReactNode, useCallback, useRef, useState } from 'react';
2+
import { ReactNode, useCallback, useEffect, useRef, useState } from 'react';
33
import { Badge, Chip, Icon, IconButton, Icons, ProgressBar, Spinner, Text, toRem } from 'folds';
44
import { EncryptedAttachmentInfo } from 'browser-encrypt-attachment';
55
import { Range } from 'react-range';

0 commit comments

Comments
 (0)