Skip to content

Commit

Permalink
add session to default props and propTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
c3024 committed Oct 9, 2023
1 parent fa2f65a commit d5506c9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/pages/ProfilePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,22 @@ const propTypes = {
/** Indicates whether the app is loading initial data */
isLoadingReportData: PropTypes.bool,

/** Session info for the currently logged in user. */
session: PropTypes.shape({
/** Currently logged in user accountID */
accountID: PropTypes.number,
}),

...withLocalizePropTypes,
};

const defaultProps = {
// When opening someone else's profile (via deep link) before login, this is empty
personalDetails: {},
isLoadingReportData: true,
session: {
accountID: 0,
},
};

/**
Expand Down

0 comments on commit d5506c9

Please sign in to comment.