Skip to content

Commit

Permalink
fix: type check
Browse files Browse the repository at this point in the history
  • Loading branch information
fmorency committed Jan 7, 2025
1 parent fd6c913 commit 3ebfea4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/bank/forms/ibcSendForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ export default function IbcSendForm({
key={token.coreDenom}
onClick={() => {
setFieldValue('selectedToken', token);
if (document.activeElement) {
if (document.activeElement instanceof HTMLElement) {
document.activeElement.blur();

Check warning on line 333 in components/bank/forms/ibcSendForm.tsx

View check run for this annotation

Codecov / codecov/patch

components/bank/forms/ibcSendForm.tsx#L330-L333

Added lines #L330 - L333 were not covered by tests
}
}}
Expand Down
2 changes: 1 addition & 1 deletion components/bank/forms/sendForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export default function SendForm({
key={token.coreDenom}
onClick={() => {
setFieldValue('selectedToken', token);
if (document.activeElement) {
if (document.activeElement instanceof HTMLElement) {
document.activeElement.blur();

Check warning on line 261 in components/bank/forms/sendForm.tsx

View check run for this annotation

Codecov / codecov/patch

components/bank/forms/sendForm.tsx#L258-L261

Added lines #L258 - L261 were not covered by tests
}
}}
Expand Down

0 comments on commit 3ebfea4

Please sign in to comment.