From 87950ffadfba0e0cdbb92d4db7d34ca57489f15f Mon Sep 17 00:00:00 2001 From: mansoor-roeen-glitch <75437785+mansoor-roeen-glitch@users.noreply.github.com> Date: Tue, 14 Sep 2021 01:46:19 +0530 Subject: [PATCH] changed format --- src/hooks/useMovie.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hooks/useMovie.js b/src/hooks/useMovie.js index 9b7ff5b7..5441444d 100644 --- a/src/hooks/useMovie.js +++ b/src/hooks/useMovie.js @@ -16,9 +16,7 @@ export function MovieProvider(props) { streamUrl: stream, streamData, setStreamData(d) { - setStreamData(p => { - return {...p,...d} - }) + setStreamData(p => ({...p,...d})) }, resetStreamData() { setStreamData(null) } }}>