Skip to content

Commit

Permalink
eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
iRaySpace committed Apr 29, 2019
1 parent e041b5c commit 0d76456
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 3 additions & 1 deletion src/store/PosStore/syncInBackground.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ export async function itemSync(itemObject, store) {
name:
itemObject.syncObject.name !== null ? itemObject.syncObject.name : "",
description:
itemObject.syncObject.description !== null ? itemObject.syncObject.description : "",
itemObject.syncObject.description !== null
? itemObject.syncObject.description
: "",
soldBy:
itemObject.syncObject.stock_uom !== null
? itemObject.syncObject.stock_uom === "Nos"
Expand Down
1 change: 0 additions & 1 deletion src/stories/components/EntriesComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export default class EntriesComponent extends React.PureComponent {
};

render() {
console.log(this.props.useDescription);
return (
<FlatList
numColumns={2}
Expand Down
6 changes: 2 additions & 4 deletions src/stories/components/EntryComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,9 @@ export default class EntryComponent extends React.PureComponent {
textAlign: "center",
}}
>
{
this.props.useDescription
{this.props.useDescription
? this.props.value.description
: this.props.value.name
}
: this.props.value.name}
</Text>
</View>
</View>
Expand Down
1 change: 0 additions & 1 deletion src/stories/screens/Sales/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ class Sales extends React.PureComponent {
itemsLength={itemsLength}
categoryLengths={categoryLengths}
onLongPressItem={onLongPressItem}

// Descriptive items
useDescription={useDescription}
/>
Expand Down

0 comments on commit 0d76456

Please sign in to comment.