Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

Commit

Permalink
Update TweekContextSelector.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Yshayy authored Feb 5, 2019
1 parent 93c77b1 commit 26c724a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/debug/TweekContextSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ export default class TweekContextSelector extends Component {
/>
<select
onChange={e => {
repo.updateContext(ctx => ({user: {...ctx.user, planet: e.target.value}}));
repo.updateContext(ctx => ({user: {...ctx.user, planet: e.target.value || undefined}}));
this.forceUpdate();
}}
style={{fontSize: 24}}
value={repo && repo._context.user.planet}
>
<option value="" disabled selected>
<option value="" selected>
Select a planet
</option>
<option>Mercury</option>
Expand All @@ -42,7 +42,7 @@ export default class TweekContextSelector extends Component {
</select>
<select
onChange={e => {
repo.updateContext(ctx => ({user: {...ctx.user, class: e.target.value}}));
repo.updateContext(ctx => ({ user: { ...ctx.user, class: e.target.value || undefined}}));
this.forceUpdate();
}}
style={{fontSize: 24}}
Expand Down

0 comments on commit 26c724a

Please sign in to comment.