Skip to content

Commit 5901787

Browse files
valadasbdukes
authored andcommitted
Fixed an issue where language flags would not show in Site Settings
#7116 had a fix for the language icons in Site Settings, it worked for a dev build but apparently failed at runtime. This PR should fix it but I will test the CI build before confirming...
1 parent fd7b020 commit 5901787

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • Dnn.AdminExperience/ClientSide/Dnn.React.Common/src/Flag

Dnn.AdminExperience/ClientSide/Dnn.React.Common/src/Flag/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ function Flag({ culture = "", onClick, title }) {
4242

4343
useEffect(() => {
4444
try {
45-
setFlagUrl(require(`./img/flags/${culture}.png`).default);
45+
setFlagUrl(require(`./img/flags/${culture}.png`));
4646
setIsFallback(false);
4747
} catch {
4848
try {
49-
setFlagUrl(require("./img/flags/none.png").default);
49+
setFlagUrl(require("./img/flags/none.png"));
5050
setIsFallback(true);
5151
} catch {
5252
setFlagUrl(undefined);

0 commit comments

Comments
 (0)