Skip to content

Commit

Permalink
Merge pull request #60 from 2pmflow/master
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianmcli authored Nov 30, 2022
2 parents bb49374 + f37f86f commit 9dad7ea
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/app/features/function-call/FunctionCall.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,13 @@ const FunctionForm = ({ fn }) => {
{fn.inputs?.map((input, idx) => (
<div key={input.name} style={{ marginBottom: `1rem` }}>
<div>{input.name}:</div>
<Input
type={input.type.substring(0, 4) === "uint" ? "number" : "text"}
<Input
type={
input.type.substring(0, 4) === 'uint' &&
!input.type.includes('[]')
? 'number'
: 'text'
}
placeholder={input.type}
value={formState[idx] || ""}
onChange={(e) => handleInputChange(idx, e.target.value)}
Expand Down

1 comment on commit 9dad7ea

@vercel
Copy link

@vercel vercel bot commented on 9dad7ea Nov 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

eth95 – ./

eth95.vercel.app
eth95-git-master-adrianmcli.vercel.app
eth95-adrianmcli.vercel.app
eth95.dev

Please sign in to comment.