Remove curried function from within `useCallback` hook (#1882)

This commit is contained in:
Fernando 2021-02-11 05:31:08 -03:00 committed by GitHub
parent 1994f62827
commit d3538d2d83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ export const useActionButtonsHandlers = (transaction: Transaction): ActionButton
const isPending = useMemo(() => !!transaction.txStatus.match(/^PENDING.*/), [transaction.txStatus]) const isPending = useMemo(() => !!transaction.txStatus.match(/^PENDING.*/), [transaction.txStatus])
const signaturePending = useCallback(addressInList(transaction.executionInfo?.missingSigners), []) const signaturePending = addressInList(transaction.executionInfo?.missingSigners)
const disabledActions = useMemo( const disabledActions = useMemo(
() => () =>