Created
May 30, 2018 16:30
-
-
Save jakelear/4ae25a45934485c71101dd4c6b7d5f84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/components/bill-history/bill-history.component.jsx b/src/components/bill-history/bill-history.component.jsx | |
index 733aae05..37fd1fde 100644 | |
--- a/src/components/bill-history/bill-history.component.jsx | |
+++ b/src/components/bill-history/bill-history.component.jsx | |
@@ -87,8 +87,8 @@ export default class BillHistory extends React.Component { | |
dy={-16} | |
style={style} | |
text={[ | |
- (record) => convertPctChange(record.pctChange), | |
- (record) => convertMoney(record.value) | |
+ (record) => convertPctChange((record.pctChange || 0)), | |
+ (record) => convertMoney((record.value || 0)) | |
]} | |
/> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment