Skip to content

Commit

Permalink
allow optional account id
Browse files Browse the repository at this point in the history
  • Loading branch information
peetzweg committed Apr 11, 2024
1 parent 4aa060e commit 29a52a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/hooks/useAccountAvailable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { keyring } from '@polkadot/ui-keyring';
import { useMemo } from 'react';

export const useAccountAvailable = (accountId: string): boolean | undefined =>
export const useAccountAvailable = (accountId?: string): boolean | undefined =>
useMemo(() => {
if (accountId === '' || accountId === undefined) return undefined;
try {
Expand Down

0 comments on commit 29a52a1

Please sign in to comment.