From 03246b0aa75c6bfe6bc1984f131bc21ec55b0c80 Mon Sep 17 00:00:00 2001 From: mansoor-roeen-glitch <75437785+mansoor-roeen-glitch@users.noreply.github.com> Date: Mon, 13 Sep 2021 23:56:07 +0530 Subject: [PATCH] Update useMovie.js --- src/hooks/useMovie.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hooks/useMovie.js b/src/hooks/useMovie.js index 5441444d..9b7ff5b7 100644 --- a/src/hooks/useMovie.js +++ b/src/hooks/useMovie.js @@ -16,7 +16,9 @@ export function MovieProvider(props) { streamUrl: stream, streamData, setStreamData(d) { - setStreamData(p => ({...p,...d})) + setStreamData(p => { + return {...p,...d} + }) }, resetStreamData() { setStreamData(null) } }}>