Browse Source

remove toast

AykutSarac 2 years ago
parent
commit
64d412a075
1 changed files with 0 additions and 2 deletions
  1. 0 2
      src/utils/jsonParser.ts

+ 0 - 2
src/utils/jsonParser.ts

@@ -1,4 +1,3 @@
-import toast from "react-hot-toast";
 
 const calculateSize = (
   text: string | [string, string][],
@@ -143,7 +142,6 @@ export const parser = (jsonStr: string, isExpanded = true) => {
     return { nodes, edges };
   } catch (error) {
     console.error(error);
-    toast.error("An error occured while parsing JSON data!");
     return {
       nodes: [],
       edges: [],