Skip to content

Commit

Permalink
fix the build
Browse files Browse the repository at this point in the history
  • Loading branch information
Umar Asghar committed Jul 15, 2021
1 parent 9f437d5 commit ada776c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions static/js/containers/DashboardPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,17 +299,17 @@ class DashboardPage extends React.Component {
fetchDashboard() {
const { dashboard, dispatch } = this.props
if (dashboard.fetchStatus === undefined) {
dispatch(fetchDashboard(SETTINGS.user.username)).catch((error) => {
// do something with the error
dispatch(fetchDashboard(SETTINGS.user.username)).catch(() => {
/* Promise rejected */
})
}
}

fetchCoursePrices() {
const { prices, dispatch } = this.props
if (prices.getStatus === undefined) {
dispatch(actions.prices.get(SETTINGS.user.username)).catch((error) => {
// do something with the error
dispatch(actions.prices.get(SETTINGS.user.username)).catch(() => {
/* Promise rejected */
})
}
}
Expand All @@ -321,17 +321,17 @@ class DashboardPage extends React.Component {
program !== undefined &&
R.pathEq([program.id, "getStatus"], undefined, programLearners)
) {
dispatch(actions.programLearners.get(program.id)).catch((error) => {
// do something with the error
dispatch(actions.programLearners.get(program.id)).catch(() => {
/* Promise rejected */
})
}
}

fetchCoupons() {
const { coupons, dispatch } = this.props
if (coupons.fetchGetStatus === undefined) {
dispatch(fetchCoupons()).catch((error) => {
// do something with the error
dispatch(fetchCoupons()).catch(() => {
/* Promise rejected */
})
}
}
Expand Down Expand Up @@ -386,8 +386,8 @@ class DashboardPage extends React.Component {
!discussionsFrontpage.loaded &&
!discussionsFrontpage.processing
) {
dispatch(actions.discussionsFrontpage.get()).catch((error) => {
// do something with the error
dispatch(actions.discussionsFrontpage.get()).catch(() => {
/* Promise rejected */
})
}
}
Expand Down

0 comments on commit ada776c

Please sign in to comment.