mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-14 23:44:01 +02:00
don't assume ref exists
This commit is contained in:
@@ -94,8 +94,8 @@ export const PlayQueue = forwardRef(({ type }: QueueProps, ref: Ref<any>) => {
|
|||||||
} else {
|
} else {
|
||||||
const player =
|
const player =
|
||||||
playerData.current.player === 1
|
playerData.current.player === 1
|
||||||
? PlayersRef.current.player1
|
? PlayersRef.current?.player1
|
||||||
: PlayersRef.current.player2;
|
: PlayersRef.current?.player2;
|
||||||
const underlying = player?.getInternalPlayer();
|
const underlying = player?.getInternalPlayer();
|
||||||
if (underlying) {
|
if (underlying) {
|
||||||
underlying.currentTime = 0;
|
underlying.currentTime = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user