Skip to content

Commit

Permalink
tiny formatting change for datacard file
Browse files Browse the repository at this point in the history
  • Loading branch information
AstridKery committed Jul 20, 2021
1 parent a148389 commit d87d6c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/DataCard/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ const ADMIN = window.ADMIN;
class DataCard extends React.Component {
componentDidMount() {
//Don't fetch cards unless you don't have any
//NOTE: otherwise it appends the same cards
//to the current list again.
if (this.props.cards.length == 0) {
//NOTE: otherwise it appends the same cards
//to the current list again.
if (this.props.cards.length == 0) {
this.props.fetchCards();
}
}
Expand Down

0 comments on commit d87d6c2

Please sign in to comment.