From b697b34cc7e4a68fc2173be91819cec35722676c Mon Sep 17 00:00:00 2001 From: Brian Cao Date: Mon, 18 Apr 2022 12:27:38 -0700 Subject: [PATCH] remove decodeURI --- components/common/FilterLink.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/common/FilterLink.js b/components/common/FilterLink.js index 8520b663..9401cb13 100644 --- a/components/common/FilterLink.js +++ b/components/common/FilterLink.js @@ -2,7 +2,6 @@ import React from 'react'; import Link from 'next/link'; import classNames from 'classnames'; import usePageQuery from 'hooks/usePageQuery'; -import { safeDecodeURI } from 'lib/url'; import Icon from './Icon'; import External from 'assets/arrow-up-right-from-square.svg'; import styles from './FilterLink.module.css'; @@ -21,9 +20,7 @@ export default function FilterLink({ id, value, label, externalUrl }) { [styles.active]: active && selected, })} > - {(label && typeof label === 'string') ?? value - ? safeDecodeURI(label || value) - : label || value} + {label || value} {externalUrl && (