Skip to content

Commit d2b2f81

Browse files
committed
Add prop types in cost display
1 parent fc7d18b commit d2b2f81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/CostDisplay/CostDisplay.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const CostDisplay = ({ cost }) => (
88
</div>
99
);
1010

11-
CostDisplay.propTypes = {};
11+
CostDisplay.propTypes = { cost: PropTypes.number.isRequired };
1212

1313
CostDisplay.defaultProps = {};
1414

0 commit comments

Comments
 (0)