Skip to content

Commit

Permalink
Fixes two small bugs in the LoginPerSite ui (#7595)
Browse files Browse the repository at this point in the history
  • Loading branch information
danjm authored and Gudahtt committed Nov 28, 2019
1 parent b67f01a commit 985bbbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const mapDispatchToProps = dispatch => {
}
}

const mergeProps = (stateProps, dispatchProps) => {
const mergeProps = (stateProps, dispatchProps, ownProps) => {
const {
domainKey,
domain,
Expand All @@ -29,6 +29,7 @@ const mergeProps = (stateProps, dispatchProps) => {
} = dispatchProps

return {
...ownProps,
...stateProps,
...dispatchProps,
disconnectAccount: () => dispatchDisconnectAccount(domainKey, domain),
Expand Down
4 changes: 3 additions & 1 deletion ui/app/selectors/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,9 @@ function getRenderablePermissionsDomains (state) {
const accountsLastConnectedTime = ethAccountsPermissionsForDomain.accounts || {}
const selectedAddressLastConnectedTime = accountsLastConnectedTime[selectedAddress]

const lastConnectedTime = formatDate(selectedAddressLastConnectedTime, 'yyyy-M-d')
const lastConnectedTime = selectedAddressLastConnectedTime
? formatDate(selectedAddressLastConnectedTime, 'yyyy-M-d')
: ''

return [ ...acc, {
name,
Expand Down

0 comments on commit 985bbbd

Please sign in to comment.