Skip to content

Commit

Permalink
LLM - fix crash on experimental settings screen (#7144)
Browse files Browse the repository at this point in the history
fix(llm): fix crash on experimental settings screen
  • Loading branch information
cgrellard-ledger authored Jun 20, 2024
1 parent bdc234d commit d9c4124
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/real-planets-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"live-mobile": patch
---

LLM - Fix crash on experimental settings screen
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,21 @@ import { isEnvDefault } from "@ledgerhq/live-env";
import { Alert } from "@ledgerhq/native-ui";
import { TrackScreen } from "~/analytics";
import { experimentalFeatures } from "../../../experimental";
import KeyboardView from "~/components/KeyboardView";
import FeatureRow from "./FeatureRow";
import SettingsNavigationScrollView from "../SettingsNavigationScrollView";

export default function ExperimentalSettings() {
const { t } = useTranslation();

return (
<KeyboardView>
<SettingsNavigationScrollView>
<TrackScreen category="Settings" name="Experimental" />
<Alert title={t("settings.experimental.disclaimer")} showIcon={false} />
{experimentalFeatures.map(feat =>
!feat.shadow || (feat.shadow && !isEnvDefault(feat.name)) ? (
<FeatureRow key={feat.name} feature={feat} />
) : null,
)}
</SettingsNavigationScrollView>
</KeyboardView>
<SettingsNavigationScrollView>
<TrackScreen category="Settings" name="Experimental" />
<Alert title={t("settings.experimental.disclaimer")} showIcon={false} />
{experimentalFeatures.map(feat =>
!feat.shadow || (feat.shadow && !isEnvDefault(feat.name)) ? (
<FeatureRow key={feat.name} feature={feat} />
) : null,
)}
</SettingsNavigationScrollView>
);
}

0 comments on commit d9c4124

Please sign in to comment.