Skip to content

Commit

Permalink
chore: clean up validation for search chain error
Browse files Browse the repository at this point in the history
  • Loading branch information
Xaroz committed Dec 12, 2024
1 parent 37057cd commit 32da31d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/search/SearchStates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export function SearchChainError({ show }: { show: boolean }) {
<SearchError
show={show}
imgSrc={ErrorIcon}
text="Sorry, the origin or destination chain is invalid. Please try choosing another one or cleaning your filters."
text="Sorry, the origin or destination chain is invalid. Please try choosing another chain or cleaning your filters."
imgWidth={70}
/>
);
Expand Down
2 changes: 1 addition & 1 deletion src/features/messages/MessageSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export function MessageSearch() {
/>
<SearchUnknownError show={isAnyError && isValidInput} />
<SearchInvalidError show={!isValidInput} allowAddress={true} />
<SearchChainError show={!isValidOrigin || !isValidDestination} />
<SearchChainError show={(!isValidOrigin || !isValidDestination) && isValidInput} />
</Card>
</>
);
Expand Down

0 comments on commit 32da31d

Please sign in to comment.