We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a8d188 commit 14f59aeCopy full SHA for 14f59ae
web/src/utils/uri.ts
@@ -5,17 +5,15 @@ import { Dispute_Filter } from "src/graphql/graphql";
5
export const encodeURIFilter = (filter: Dispute_Filter): string => {
6
if (Object.keys(filter).length === 0) {
7
return "all";
8
- } else {
9
- return encodeURIComponent(JSON.stringify(filter));
10
}
+ return encodeURIComponent(JSON.stringify(filter));
11
};
12
13
export const decodeURIFilter = (filter: string): Dispute_Filter => {
14
if (filter === "all") {
15
return {};
16
17
- return JSON.parse(decodeURI(filter));
18
+ return JSON.parse(decodeURI(filter));
19
20
21
export const useRootPath = () => {
0 commit comments