Skip to content

Commit

Permalink
Merge branch 'dev' into configurable-walk-options
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-grant-ibigroup authored Oct 10, 2023
2 parents ddf8156 + f27e945 commit e6dff22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/components/app/app-menu-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ export default class AppMenuItem extends Component<Props, State> {
render(): JSX.Element {
const { icon, id, onClick, subItems, text, ...otherProps } = this.props
const { isExpanded } = this.state
const Element = otherProps.href ? 'a' : 'button'
const hasHref = !!otherProps.href
const isAbsolute = otherProps.href?.startsWith('http')
const Element = hasHref ? 'a' : 'button'
const containerId = `${id}-container`
return (
<>
Expand All @@ -80,6 +82,7 @@ export default class AppMenuItem extends Component<Props, State> {
onClick={subItems ? this._toggleSubmenu : onClick}
onKeyDown={this._handleKeyDown}
{...otherProps}
target={hasHref && isAbsolute ? '_blank' : undefined}
>
<span aria-hidden>{icon}</span>
<span>{text}</span>
Expand Down
2 changes: 1 addition & 1 deletion lib/components/user/user-account-screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class UserAccountScreen extends Component {
) {
passedUserData.notificationChannel = notificationChannel.join(',')
}
const result = await createOrUpdateUser(userData, intl)
const result = await createOrUpdateUser(passedUserData, intl)

// If needed, display a toast notification on success.
if (result === userActions.UserActionResult.SUCCESS && !silentOnSucceed) {
Expand Down

0 comments on commit e6dff22

Please sign in to comment.