Skip to content

Commit

Permalink
Merge pull request #555 from opencollective/fixEventBudget
Browse files Browse the repository at this point in the history
Fix double budget section bug
  • Loading branch information
xdamman committed Jun 22, 2018
2 parents 8eaf538 + 59298b0 commit 208c6fb
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions src/components/Event.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ import NotificationBar from './NotificationBar';
import InterestedForm from './InterestedForm';
import Sponsors from './Sponsors';
import Responses from './Responses';
import { capitalize, filterCollection, formatCurrency, trimObject } from '../lib/utils';
import { capitalize, filterCollection, trimObject } from '../lib/utils';
import Markdown from 'react-markdown';
import { defineMessages, FormattedMessage, FormattedDate, FormattedTime } from 'react-intl';
import { uniqBy, get, union } from 'lodash';
import { Router } from '../server/pages';
import { addEventMutations } from '../graphql/mutations';
import { exportRSVPs } from '../lib/export_file';
import SectionTitle from './SectionTitle';
import ExpensesSection from '../apps/expenses/components/ExpensesSection';
import withIntl from '../lib/withIntl';
import Button from './Button';
Expand Down Expand Up @@ -346,16 +345,11 @@ class Event extends React.Component {
</section>
}

<section id="budget" className="clear">
<div className="content" >
<SectionTitle section="budget" values={{ balance: formatCurrency(get(event, 'stats.balance'), event.currency) }} />
<ExpensesSection
collective={event}
LoggedInUser={LoggedInUser}
limit={10}
/>
</div>
</section>
<ExpensesSection
collective={event}
LoggedInUser={LoggedInUser}
limit={10}
/>

</div>
</div>
Expand Down

0 comments on commit 208c6fb

Please sign in to comment.