File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
002-checkout/src/components Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import pluralize from 'pluralize'
3
3
4
4
var OrderSummary = React . createClass ( {
5
5
render : function ( ) {
6
- var duration = this . props . duration + " " + pluralize ( 'day' , this . props . duration ) ;
6
+ var duration = this . props . duration + " " + pluralize ( 'day' , parseInt ( this . props . duration ) ) ;
7
7
8
8
// Initial total Calculation
9
9
var initialTotal = this . props . duration * this . props . price ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React from 'react'
2
2
import pluralize from 'pluralize'
3
3
4
4
function Information ( props ) {
5
- var duration = pluralize ( 'day' , props . duration ) ;
5
+ var duration = pluralize ( 'day' , parseInt ( props . duration ) ) ;
6
6
7
7
return (
8
8
< div className = "WorkspaceInformation" >
You can’t perform that action at this time.
0 commit comments