Skip to content

Commit b61f0f3

Browse files
committed
fix: simplify button disabled state logic in GeneralForm component
1 parent 87e12ec commit b61f0f3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/app/dashboard/settings/_components/GeneralForm.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,7 @@ const GeneralForm: React.FC<Props> = ({ user }) => {
250250
)}
251251
/>
252252

253-
<Button
254-
type="submit"
255-
disabled={mutation.isPending || !form.formState.isValid}
256-
>
253+
<Button type="submit" disabled={mutation.isPending}>
257254
{mutation.isPending && <Loader2 className="animate-spin" />}
258255
{_t("Save")}
259256
</Button>

0 commit comments

Comments
 (0)