Skip to content

Commit

Permalink
fix: trim trailing slash from custom rpc url
Browse files Browse the repository at this point in the history
  • Loading branch information
vacekj committed Jun 25, 2024
1 parent c04a858 commit 4b17f04
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const GrpcEndpointForm = ({
placeholder='Enter URL'
ref={customGrpcEndpointInput}
value={isCustomGrpcEndpoint && !!grpcEndpointInput ? grpcEndpointInput : ''}
onChange={e => setGrpcEndpointInput(e.target.value)}
onChange={e => setGrpcEndpointInput(e.target.value.replace(/\/$/, ''))}
className='w-full rounded border border-secondary bg-background p-1 outline-0 transition hover:border-gray-400 focus:border-gray-400'
/>
}
Expand Down

0 comments on commit 4b17f04

Please sign in to comment.