|
@@ -10,7 +10,6 @@ export const ClearModal: React.FC<ModalProps> = ({ visible, setVisible }) => {
|
|
|
|
|
|
const handleClear = () => {
|
|
const handleClear = () => {
|
|
dispatch({ type: ConfigActionType.SET_JSON, payload: "{}" });
|
|
dispatch({ type: ConfigActionType.SET_JSON, payload: "{}" });
|
|
- localStorage.removeItem("json");
|
|
|
|
toast.success(`Cleared JSON and removed from memory.`);
|
|
toast.success(`Cleared JSON and removed from memory.`);
|
|
setVisible(false);
|
|
setVisible(false);
|
|
};
|
|
};
|