diff --git a/ui/app/pages/permissions-connect/permissions-connect.container.js b/ui/app/pages/permissions-connect/permissions-connect.container.js index f32ea08f0..536a4b1ef 100644 --- a/ui/app/pages/permissions-connect/permissions-connect.container.js +++ b/ui/app/pages/permissions-connect/permissions-connect.container.js @@ -36,7 +36,7 @@ const mapStateToProps = (state, ownProps) => { const addressLastConnectedMap = lastConnectedInfo[origin] || {} Object.keys(addressLastConnectedMap).forEach((key) => { - addressLastConnectedMap[key] = formatDate(addressLastConnectedMap[key], 'yyyy-M-d') + addressLastConnectedMap[key] = formatDate(addressLastConnectedMap[key], 'yyyy-MM-dd') }) const connectPath = `${CONNECT_ROUTE}/${permissionsRequestId}` diff --git a/ui/app/selectors/selectors.js b/ui/app/selectors/selectors.js index e7ae9bb8d..1bf9abba7 100644 --- a/ui/app/selectors/selectors.js +++ b/ui/app/selectors/selectors.js @@ -498,7 +498,7 @@ export function getRenderablePermissionsDomains (state) { const selectedAddressLastConnectedTime = accountsLastConnectedTime[selectedAddress] const lastConnectedTime = selectedAddressLastConnectedTime - ? formatDate(selectedAddressLastConnectedTime, 'yyyy-M-d') + ? formatDate(selectedAddressLastConnectedTime, 'yyyy-MM-dd') : '' return [ ...acc, {