Skip to content

Commit

Permalink
chire: don't show error popup if abi field is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
xtools-at committed Nov 2, 2023
1 parent b1c13e3 commit 32a179f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/SourceBrowser/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export const SourceBrowser = ({
const onAbiChange = useCallback(async () => {
if (source.startsWith("http") || source.startsWith("/")) {
onUrlChange(source);
} else {
} else if (source) {
try {
const jsonContent = JSON.parse(source);
onJsonChange(jsonContent);
Expand Down

0 comments on commit 32a179f

Please sign in to comment.