Skip to content

Commit

Permalink
fix: contract filter is now editable (#824)
Browse files Browse the repository at this point in the history
Fixed logic to handle editable contract filter
  • Loading branch information
Kevin101Zhang authored Jun 24, 2024
1 parent f8028fe commit 5185457
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,9 @@ const PublishFormView = ({
id="contractFilter"
type="text"
placeholder="social.near"
value={startBlock === "startBlockContinue" ? contractFilter : indexerDetails.rule.affected_account_id}
value={startBlock === "startBlockContinue" ? indexerDetails.rule.affected_account_id : contractFilter}
onChange={(e) => handleSetContractFilter(e.target.value)}
required
disabled={startBlock === "startBlockContinue"}
className={`px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500 focus:border-gray-500 ${isContractFilterValid ? 'border-gray-300' : 'border-red-500'}`}
/>
{!isContractFilterValid && (
Expand Down

0 comments on commit 5185457

Please sign in to comment.