Skip to content

Commit

Permalink
feat(frontend): use utility isEmptyString
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Dec 23, 2024
1 parent 066a693 commit 79f4ca9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { fromNullable, isNullish, nonNullish, notEmptyString } from '@dfinity/utils';
import { fromNullable, isNullish, nonNullish, isEmptyString } from '@dfinity/utils';
import type { TransactionResponse } from '@ethersproject/abstract-provider';
import { onDestroy } from 'svelte';
import { initPendingTransactionsListener as initEthPendingTransactionsListenerProvider } from '$eth/providers/alchemy.providers';
Expand Down Expand Up @@ -85,7 +85,7 @@
}) => {
await listener?.disconnect();
if (isNullish(toAddress) || !notEmptyString(toAddress)) {
if (isNullish(toAddress) || isEmptyString(toAddress)) {
return;
}
Expand Down

0 comments on commit 79f4ca9

Please sign in to comment.