diff --git a/bun.lockb b/bun.lockb
index 218160e4..554eb353 100755
Binary files a/bun.lockb and b/bun.lockb differ
diff --git a/components/bank/forms/__tests__/ibcSendForm.test.tsx b/components/bank/forms/__tests__/ibcSendForm.test.tsx
index 2451357f..ebc76322 100644
--- a/components/bank/forms/__tests__/ibcSendForm.test.tsx
+++ b/components/bank/forms/__tests__/ibcSendForm.test.tsx
@@ -20,7 +20,6 @@ function renderWithProps(props = {}) {
return renderWithChainProvider();
}
-// TODO: Validate form inputs in component
describe('IbcSendForm Component', () => {
afterEach(cleanup);
@@ -60,14 +59,12 @@ describe('IbcSendForm Component', () => {
expect(amountInput).toHaveValue('100');
});
- // // TODO: Make this test pass
- // test('send button is disabled when inputs are invalid', () => {
- // renderWithProps();
- // const sendButton = screen.getByLabelText('send-btn');
- // expect(sendButton).toBeDisabled();
- // });
+ test('send button is disabled when inputs are invalid', () => {
+ renderWithProps();
+ const sendButton = screen.getByLabelText('send-btn');
+ expect(sendButton).toBeDisabled();
+ });
- // TODO: Fix inputs to be valid
test('send button is enabled when inputs are valid', () => {
renderWithProps();
fireEvent.change(screen.getByPlaceholderText('Recipient address'), {
diff --git a/components/bank/forms/__tests__/sendForm.test.tsx b/components/bank/forms/__tests__/sendForm.test.tsx
index 33024e13..2b214540 100644
--- a/components/bank/forms/__tests__/sendForm.test.tsx
+++ b/components/bank/forms/__tests__/sendForm.test.tsx
@@ -27,7 +27,6 @@ function renderWithProps(props = {}) {
return renderWithChainProvider();
}
-// TODO: Validate form inputs in component
describe('SendForm Component', () => {
afterEach(cleanup);
@@ -67,14 +66,12 @@ describe('SendForm Component', () => {
expect(amountInput).toHaveValue('100');
});
- // TODO: Make this test pass
- // test('send button is disabled when inputs are invalid', () => {
- // renderWithProps();
- // const sendButton = screen.getByText('Send');
- // expect(sendButton).toBeDisabled();
- // });
+ test('send button is disabled when inputs are invalid', () => {
+ renderWithProps();
+ const sendButton = screen.getByText('Send');
+ expect(sendButton).toBeDisabled();
+ });
- // TODO: Fix inputs to be valid
test('send button is enabled when inputs are valid', () => {
renderWithProps();
fireEvent.change(screen.getByPlaceholderText('Recipient address'), {
diff --git a/components/factory/forms/CreateDenom.tsx b/components/factory/forms/CreateDenom.tsx
index 1e641ec7..26600806 100644
--- a/components/factory/forms/CreateDenom.tsx
+++ b/components/factory/forms/CreateDenom.tsx
@@ -29,7 +29,6 @@ export default function CreateDenom({
const { estimateFee } = useFeeEstimation('manifest');
const validateSubdenom = (value: string) => {
- console.log('Validating subdenom', value);
if (value.length === 0) {
return 'Subdenom is required';
}
diff --git a/components/groups/forms/groups/GroupDetailsForm.tsx b/components/groups/forms/groups/GroupDetailsForm.tsx
index f47cdc99..16dfb3e8 100644
--- a/components/groups/forms/groups/GroupDetailsForm.tsx
+++ b/components/groups/forms/groups/GroupDetailsForm.tsx
@@ -53,8 +53,10 @@ export default function GroupDetails({
validationSchema={GroupSchema}
onSubmit={nextStep}
validateOnChange={true}
+ validateOnMount={true}
+ enableReinitialize
>
- {({ isValid, dirty, setFieldValue }) => (
+ {({ isValid, setFieldValue }) => (