Skip to content

Commit

Permalink
Fixed some bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Basic committed Jun 14, 2015
1 parent 3501107 commit 2a1801c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion assets/js/components/Navbar.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Navbar extends React.Component {
var signedInAs = () => {
if (this.props.loggedIn === true) {
return (
<p class="navbar-text">Signed in as <b>{this.props.user.full_name}</b></p>
<p className="navbar-text">Signed in as <b>{this.props.user.full_name}</b></p>
);
}
};
Expand Down
3 changes: 1 addition & 2 deletions assets/js/components/WakaTime.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class WakaTime extends React.Component {
},
loggedIn: false,
loggingEnabled: config.loggingEnabled,
totalTimeLoggedToday: 0
totalTimeLoggedToday: '0 minutes'
};
}

Expand Down Expand Up @@ -64,7 +64,6 @@ class WakaTime extends React.Component {
});

wakatime.getTotalTimeLoggedToday().done((grand_total) => {
console.log(grand_total['text']);
this.setState({
totalTimeLoggedToday: grand_total['text']
})
Expand Down
Binary file added graphics/wakatime-logo-38-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions public/js/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ var Navbar = (function (_React$Component) {
if (_this.props.loggedIn === true) {
return React.createElement(
"p",
{ "class": "navbar-text" },
{ className: "navbar-text" },
"Signed in as ",
React.createElement(
"b",
Expand Down Expand Up @@ -388,7 +388,7 @@ var WakaTime = (function (_React$Component) {
},
loggedIn: false,
loggingEnabled: config.loggingEnabled,
totalTimeLoggedToday: 0
totalTimeLoggedToday: '0 minutes'
};
}

Expand Down Expand Up @@ -426,7 +426,6 @@ var WakaTime = (function (_React$Component) {
});

wakatime.getTotalTimeLoggedToday().done(function (grand_total) {
console.log(grand_total['text']);
_this.setState({
totalTimeLoggedToday: grand_total['text']
});
Expand Down

0 comments on commit 2a1801c

Please sign in to comment.