Skip to content

Commit

Permalink
chore: disable back button on a conditional expression
Browse files Browse the repository at this point in the history
- to support disabling navigation on fetch loading
  • Loading branch information
tahmidrahman-dsi authored and github-actions committed Dec 4, 2024
1 parent 01fb631 commit 905308a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/client/src/views/RegisterForm/RegisterForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,7 @@ class RegisterFormView extends React.Component<FullProps, State> {
type="tertiary"
size="small"
onClick={this.props.goBack}
disabled={!canContinue}
>
<Icon name="ArrowLeft" size="medium" />
{intl.formatMessage(buttonMessages.back)}
Expand Down

0 comments on commit 905308a

Please sign in to comment.