Skip to content

Commit f54b2b6

Browse files
christianalfoniCompuIves
authored andcommitted
Fix storing settings (codesandbox#2459)
1 parent 9d68cff commit f54b2b6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/app/src/app/overmind/namespaces/preferences/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ export const settingChanged: Action<{
3939
name: string;
4040
}> = ({ state, effects }, { name, value }) => {
4141
const path = name.split('.');
42-
const lastKey = path.pop();
4342
const firstKey = path[0];
43+
const lastKey = path.pop();
4444
const settingsTarget = path.reduce(
4545
(aggr, pathKey) => aggr[pathKey],
4646
state.preferences.settings

packages/homepage/src/screens/home/NPMFeature/SandboxCount.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { Component } from 'react';
1+
import { Component } from 'react';
22
import { search } from '../../../utils/algolia';
33

44
class SandboxCount extends Component {
@@ -26,7 +26,8 @@ class SandboxCount extends Component {
2626
const { fallback } = this.props;
2727
const { sandboxes } = this.state;
2828
const number = sandboxes || fallback;
29-
return <>{number.toLocaleString('en-US')}</>;
29+
30+
return number.toLocaleString('en-US');
3031
}
3132
}
3233

0 commit comments

Comments
 (0)