From 4216c3251e625fc9c2112a5ef345595ce5a57755 Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Sun, 26 Apr 2020 16:51:26 +0200 Subject: [PATCH] fix: linter --- packages/app/src/hooks/use-query-state.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/app/src/hooks/use-query-state.js b/packages/app/src/hooks/use-query-state.js index f7b0b076..7fa80e4f 100644 --- a/packages/app/src/hooks/use-query-state.js +++ b/packages/app/src/hooks/use-query-state.js @@ -7,14 +7,14 @@ import eq from '@/lib/eq' const fromLocation = isSSR ? () => ({}) : () => { - const urlObj = new URL(window.location) - const query = Object.fromEntries(urlObj.searchParams.entries()) - const decodeQuery = Object.keys(query).reduce( - (acc, key) => ({ ...acc, [key]: decodeURIComponent(query[key]) }), - {} - ) - return decodeQuery - } + const urlObj = new URL(window.location) + const query = Object.fromEntries(urlObj.searchParams.entries()) + const decodeQuery = Object.keys(query).reduce( + (acc, key) => ({ ...acc, [key]: decodeURIComponent(query[key]) }), + {} + ) + return decodeQuery + } const condition = isSSR ? [] : [window.location.search]