Skip to content

Commit

Permalink
Merge pull request #4162 from WiXSL/patch-var-to-const
Browse files Browse the repository at this point in the history
Change var to const definitions.
  • Loading branch information
fzaninotto authored Dec 13, 2019
2 parents ee998ef + 1d0c340 commit 7aac11c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/data-generator/src/finalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function(db) {
});

// add 'collector' group
var customersBySpending = db.commands.reduce((customers, command) => {
const customersBySpending = db.commands.reduce((customers, command) => {
if (!customers[command.customer_id]) {
customers[command.customer_id] = { nbProducts: 0 };
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/layout/CardContentInner.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import classnames from 'classnames';
import CardContent from '@material-ui/core/CardContent';
import { makeStyles } from '@material-ui/core/styles';

var useStyles = makeStyles(
const useStyles = makeStyles(
theme => ({
root: {
paddingTop: 0,
Expand Down

0 comments on commit 7aac11c

Please sign in to comment.