Skip to content

Instantly share code, notes, and snippets.

@jakelear
Created May 30, 2018 16:30
Show Gist options
  • Save jakelear/4ae25a45934485c71101dd4c6b7d5f84 to your computer and use it in GitHub Desktop.
Save jakelear/4ae25a45934485c71101dd4c6b7d5f84 to your computer and use it in GitHub Desktop.
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