Skip to content

Commit 8c1b869

Browse files
authored
Merge pull request #2129 from parteekcoder/font_size
font size fix
2 parents a4af1b5 + 6fd50bc commit 8c1b869

File tree

1 file changed

+2
-2
lines changed
  • client/modules/IDE/components/Preferences

1 file changed

+2
-2
lines changed

client/modules/IDE/components/Preferences/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ class Preferences extends React.Component {
5959
}
6060

6161
decreaseFontSize() {
62-
const newValue = this.state.fontSize - 2;
62+
const newValue = Number(this.state.fontSize) - 2;
6363
this.setFontSize(newValue);
6464
}
6565

6666
increaseFontSize() {
67-
const newValue = this.state.fontSize + 2;
67+
const newValue = Number(this.state.fontSize) + 2;
6868
this.setFontSize(newValue);
6969
}
7070

0 commit comments

Comments
 (0)