Skip to content

Commit

Permalink
fix elrond coin config name (#6887)
Browse files Browse the repository at this point in the history
* fix elrond default coin config name

* try/catch getCurrencyConfig

* changeset
  • Loading branch information
lvndry committed May 21, 2024
1 parent 4e6accc commit 7bbad43
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/shiny-baboons-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"live-mobile": patch
"@ledgerhq/live-common": patch
---

try/catch coin config + fix configuration name typo
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ const AssetScreen = ({ route }: NavigationProps) => {

let currencyConfig: CurrencyConfig | undefined = undefined;
if (isCryptoCurrency(currency)) {
currencyConfig = getCurrencyConfiguration(currency);
try {
currencyConfig = getCurrencyConfiguration(currency);
} catch (e) {
console.warn(e);
}
}

const data = useMemo(
Expand Down
2 changes: 1 addition & 1 deletion libs/ledger-live-common/src/families/elrond/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ConfigInfo } from "@ledgerhq/live-config/LiveConfig";

export const elrondConfig: Record<string, ConfigInfo> = {
config_currency_elrondConfig: {
config_currency_elrond: {
type: "object",
default: {
status: {
Expand Down

0 comments on commit 7bbad43

Please sign in to comment.