diff --git a/src/frontend/src/lib/utils/input.utils.ts b/src/frontend/src/lib/utils/input.utils.ts index 1acb285e5b..822864c2d1 100644 --- a/src/frontend/src/lib/utils/input.utils.ts +++ b/src/frontend/src/lib/utils/input.utils.ts @@ -1,9 +1,9 @@ import type { OptionAmount } from '$lib/types/send'; import type { OptionString } from '$lib/types/string'; -import { isNullish } from '@dfinity/utils'; +import { isEmptyString, isNullish } from '@dfinity/utils'; export const isNullishOrEmpty = (value: OptionString): value is undefined | null => - isNullish(value) || value === ''; + isEmptyString(value); export const invalidAmount = (amount: OptionAmount): boolean => isNullish(amount) || Number(amount) < 0;