Enable stricter Typescript options (#30435)
This commit is contained in:
1 parent
564ebfefcf
commit
3750e8050c
9 files changed
+36
-16
No files matched your search
@@ -74,8 +74,9 @@ export const soundsMiddleware = (): Middleware<
|
||||
if (isActionWithMetaSound(action)) {
|
||||
const sound = action.meta.sound;
|
||||
|
||||
if (sound && Object.hasOwn(soundCache, sound)) {
|
||||
play(soundCache[sound]);
|
||||
if (sound) {
|
||||
const s = soundCache[sound];
|
||||
if (s) play(s);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user