From 905308a877003ea6ce7ce3b22e35a19a88135c2c Mon Sep 17 00:00:00 2001 From: tahmidrahman-dsi Date: Fri, 29 Nov 2024 14:53:31 +0600 Subject: [PATCH] chore: disable back button on a conditional expression - to support disabling navigation on fetch loading --- packages/client/src/views/RegisterForm/RegisterForm.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/client/src/views/RegisterForm/RegisterForm.tsx b/packages/client/src/views/RegisterForm/RegisterForm.tsx index 824440226a..03f8768ddb 100644 --- a/packages/client/src/views/RegisterForm/RegisterForm.tsx +++ b/packages/client/src/views/RegisterForm/RegisterForm.tsx @@ -1115,6 +1115,7 @@ class RegisterFormView extends React.Component { type="tertiary" size="small" onClick={this.props.goBack} + disabled={!canContinue} > {intl.formatMessage(buttonMessages.back)}