Skip to content

Commit c2c18c3

Browse files
authored
Merge pull request #3289 from input-output-hk/fix/lw-12412-blank-screen-fix
[LW-12412] Blank screen fix
2 parents cafb239 + 2010bed commit c2c18c3

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## vNext
44

5+
### Fixes
6+
7+
- Fixed a blank screen issue ([PR 3289](https://github.com/input-output-hk/daedalus/pull/3289))
8+
59
### Chores
610

711
- Update `cardano-node` to 10.2.1 and `cardano-wallet` to v2025-03-31 ([PR 3288](https://github.com/input-output-hk/daedalus/pull/3288))

source/renderer/app/components/settings/categories/WalletsSettings.tsx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,18 @@ class WalletSettings extends Component<Props> {
7070
onToggleCurrencyIsActive,
7171
onOpenExternalLink,
7272
} = this.props;
73-
const currencyOptions = map(currencyList, ({ code, name }) => ({
74-
label: `${code.toUpperCase()} - ${name}`,
75-
value: code,
76-
}));
73+
74+
const currencyOptions = [];
75+
map(currencyList, ({ code, name }) => {
76+
// Prevent empty currency data from being displayed
77+
if (!code || !name) return;
78+
const currencyData = {
79+
label: `${code.toUpperCase()} - ${name}`,
80+
value: code,
81+
};
82+
currencyOptions.push(currencyData);
83+
});
84+
7785
return (
7886
<div className={styles.component}>
7987
<div className={styles.label}>

0 commit comments

Comments
 (0)