Skip to content

Commit

Permalink
Make code and types sectinos start from index 0 (not 1)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzdogan committed Nov 28, 2024
1 parent 62a0c67 commit c0338c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ParsedEOF.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const ParsedEOF = ({ parsedEOF, identifier = "0" }) => {
className="mt-4 border border-gray-700 rounded-lg p-4 overflow-x-auto"
key={"typedSection-" + identifier + "-" + index}
>
<h4 className="text-sm">Types Section {index + 1}</h4>
<h4 className="text-sm">Types Section {index}</h4>
<table className="w-full text-sm">
<thead>
<tr className="border-b border-gray-700">
Expand Down Expand Up @@ -191,7 +191,7 @@ const ParsedEOF = ({ parsedEOF, identifier = "0" }) => {
<h3 className="mt-8">Code Sections</h3>
{parsedEOF.body.codeSections.map((codeSectionUint8Array, index) => (
<div className="ml-4" key={"codeSection-" + identifier + "-" + index}>
<h4 className="mt-2 text-sm">Code Section {index + 1}</h4>
<h4 className="mt-2 text-sm">Code Section {index}</h4>
<div className="mt-2">
<TextArea value={codeSectionUint8Array} />
</div>
Expand Down

0 comments on commit c0338c5

Please sign in to comment.