Skip to content

Commit

Permalink
fixed localization bug
Browse files Browse the repository at this point in the history
  • Loading branch information
NanaKay007 committed Jun 9, 2020
1 parent f4352c6 commit 2858c9e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions web/src/components/demo-pages/kiosk/datasets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,14 +294,16 @@ export const datasets = (): PageContentType => {
</div>
<Localized
id="dataset-description-hours"
b={<b />}
{...Object.entries(globalStats).reduce(
(obj: any, [key, value]) => {
obj['$' + key] = value;
return obj;
},
{}
)}>
elems={{ b: <b /> }}
vars={{
...Object.entries(globalStats).reduce(
(obj: any, [key, value]) => {
obj[key] = value;
return obj;
},
{}
),
}}>
<p className="demo-datasets--eofy__body" />
</Localized>
</div>
Expand Down

0 comments on commit 2858c9e

Please sign in to comment.