Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: LIVE-15628 Fix app crashing when selecting EVM accounts #8921

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/pretty-boats-cry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"live-mobile": minor
---

Fix crash happening when selecting EVM account from account screen, missing walletState passed to decorator
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { ActionButtonEvent } from "~/components/FabActions";
import { useCanShowStake } from "./useCanShowStake";
import { PtxToast } from "~/components/Toast/PtxToast";
import { useFetchCurrencyAll } from "@ledgerhq/live-common/exchange/swap/hooks/index";
import { walletSelector } from "~/reducers/wallet";

type Props = {
account: AccountLike;
Expand All @@ -39,6 +40,7 @@ export default function useAccountActions({ account, parentAccount, colors }: Pr
const readOnlyModeEnabled = useSelector(readOnlyModeEnabledSelector);
const route = useRoute();
const { t } = useTranslation();
const walletState = useSelector(walletSelector);

const ptxServiceCtaScreens = useFeature("ptxServiceCtaScreens");

Expand Down Expand Up @@ -191,6 +193,7 @@ export default function useAccountActions({ account, parentAccount, colors }: Pr
(decorators &&
decorators.getMainActions &&
decorators.getMainActions({
walletState,
account,
parentAccount,
colors,
Expand Down
Loading