Skip to content

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizAsFight committed Oct 31, 2024
1 parent c6c516f commit 0e877a9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 182 deletions.
2 changes: 1 addition & 1 deletion packages/app/src/systems/Network/hooks/useNetworkForm.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { yupResolver } from '@hookform/resolvers/yup';
import { useEffect, useMemo } from 'react';
import { useEffect } from 'react';
import { useForm } from 'react-hook-form';
import * as yup from 'yup';
import type { Maybe } from '~/systems/Core';
Expand Down
180 changes: 0 additions & 180 deletions packages/app/src/systems/Network/machines/networksMachine.test.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ export function UpdateNetwork() {
});

function onSubmit(data: NetworkFormValues) {
handlers.updateNetwork({ id: editingNetwork?.id as string, data });
if (!data.chainId == null) return;

handlers.updateNetwork({
id: editingNetwork?.id as string,
data: {
...data,
chainId: Number(data.chainId),
},
});
}

return (
Expand Down

0 comments on commit 0e877a9

Please sign in to comment.