Skip to content

Commit 01e7d48

Browse files
committed
delete hash warning call
1 parent 745bc69 commit 01e7d48

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/features/decoder/components/token-decoder.component.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ export const TokenDecoderComponent: React.FC<TokenDecoderComponentProps> = ({
5050

5151
const loadDecoderInputs = useDecoderStore((state) => state.loadDecoderInputs);
5252
const handleJwtChange$ = useDecoderStore((state) => state.handleJwtChange);
53-
const showUseHashWarning$ = useDecoderStore(
54-
(state) => state.showUseHashWarning
55-
);
5653

5754
useEffect(() => {
5855
const handleHashChange = () => {
@@ -100,7 +97,6 @@ export const TokenDecoderComponent: React.FC<TokenDecoderComponentProps> = ({
10097
const warning = searchParams.get(WARNING_PARAM_KEY);
10198

10299
if (warning === WARNING_PARAM_VALUE) {
103-
showUseHashWarning$();
104100

105101
searchParams.delete(WARNING_PARAM_KEY);
106102

@@ -128,7 +124,7 @@ export const TokenDecoderComponent: React.FC<TokenDecoderComponentProps> = ({
128124
return () => {
129125
window.removeEventListener("hashchange", handleHashChange);
130126
};
131-
}, [handleJwtChange$, router, showUseHashWarning$]);
127+
}, [handleJwtChange$, router]);
132128

133129
useEffect(() => {
134130
if (isMounted.current) {

0 commit comments

Comments
 (0)