Skip to content

Commit

Permalink
fix: add optional chaning
Browse files Browse the repository at this point in the history
  • Loading branch information
VanessaPC committed Mar 26, 2024
1 parent a0a6690 commit 09ac2ff
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ export const DappTransactionContainer = withAddressBookContext(

const userAddresses = useMemo(() => walletInfo.addresses.map((v) => v.address), [walletInfo.addresses]);
const userRewardAccounts = useObservable(inMemoryWallet.delegation.rewardAccounts$);
const rewardAccountsAddresses = useMemo(
() => userRewardAccounts && userRewardAccounts.map((key) => key.address),
[userRewardAccounts]
);
const rewardAccountsAddresses = useMemo(() => userRewardAccounts?.map((key) => key.address), [userRewardAccounts]);
const protocolParameters = useObservable(inMemoryWallet?.protocolParameters$);

useEffect(() => {
Expand Down

0 comments on commit 09ac2ff

Please sign in to comment.