Skip to content

Commit 750aedf

Browse files
committed
Merge pull request #1 from roncli/divide-playtimeTwoWeeks
Divide playtimeTwoWeeks into numeric and readable
2 parents be858f3 + 64c39e1 commit 750aedf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

steam/containers/Game.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ module.exports = (function(undefined){
44
function Game(app) {
55
this.appId = app.appid;
66
this.name = app.name ? app.name : undefined;
7-
this.playtimeTwoWeeks = app.playtime_2weeks ? this.convertFromMinutes(app.playtime_2weeks) : '0 minutes';
7+
this.playtimeTwoWeeks = app.playtime_2weeks ? app.playtime_2weeks : 0;
8+
this.playtimeTwoWeeksReadable = app.playtime_2weeks ? this.convertFromMinutes(app.playtime_2weeks) : '0 minutes';
89
this.playtimeForever = app.playtime_forever ? app.playtime_forever : 0;
910
this.playtimeForeverReadable = this.convertFromMinutes(this.playtimeForever);
1011
this.icon = app.img_icon_url ? this.getImageForGame(app.appid, app.img_icon_url) : undefined;
@@ -49,4 +50,4 @@ module.exports = (function(undefined){
4950
};
5051

5152
return Game;
52-
})();
53+
})();

0 commit comments

Comments
 (0)