diff --git a/packages/suite/src/hooks/wallet/form/useCompose.ts b/packages/suite/src/hooks/wallet/form/useCompose.ts index 624b6e3ecc8..430b273fed6 100644 --- a/packages/suite/src/hooks/wallet/form/useCompose.ts +++ b/packages/suite/src/hooks/wallet/form/useCompose.ts @@ -1,5 +1,6 @@ import { useEffect, useRef, useCallback, useState } from 'react'; import { FieldPath, UseFormReturn } from 'react-hook-form'; +import { isFulfilled } from '@reduxjs/toolkit'; import { FeeLevel } from '@trezor/connect'; import { useDebounce } from '@trezor/react-utils'; @@ -88,7 +89,7 @@ export const useCompose = ({ formState, composeContext: state, }), - ).unwrap(); + ).then(res => (isFulfilled(res) ? res.payload : undefined)); }); // RACE-CONDITION NOTE: