Reputation: 7740
const perunString = perun.times(100).toFixed(2).toString();
return `%{perunString} %`;
Which gives two errors
Upvotes: 1
Views: 826
Reputation: 26827
You have an error in your template interpolation syntax that is probably causing both errors:
// Before
`%{perunString} %`
// After
`${perunString} %`
Note the change from %{
to ${
.
Upvotes: 3