Skip to content

Commit

Permalink
feat(frontend): use utility isEmptyString (#4061)
Browse files Browse the repository at this point in the history
# Motivation

There is a new utility `isEmptyString` in `@dfinity/utils` which can be
use instead of `!notEmptyString`. So this PR replace the one occurence
of such code we have in our code base.

# Changes

- Replace function usage
  • Loading branch information
peterpeterparker authored Dec 23, 2024
1 parent 066a693 commit f54da33
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 f54da33

Please sign in to comment.