refactor: clean up stopGracePeriodSwarm assignment formatting │

│                                                                                                                                                                                                                                                                                                                                                                                                    │
│   - Improve code readability by condensing multi-line assignment                                                                                                                                                                                                                                                                                                                                   │
│   - Maintain consistent formatting with other field assignments                                                                                                                                                                                                                                                                                                                                    │
│   - No functional changes, formatting only
This commit is contained in:
Lucas Manchine
2025-09-05 15:34:03 -03:00
parent 85e3a92877
commit b7e2df6d6a

View File

@@ -258,10 +258,9 @@ export const AddSwarmSettings = ({ id, type }: Props) => {
networkSwarm: data.networkSwarm networkSwarm: data.networkSwarm
? JSON.stringify(data.networkSwarm, null, 2) ? JSON.stringify(data.networkSwarm, null, 2)
: null, : null,
stopGracePeriodSwarm: stopGracePeriodSwarm: data.stopGracePeriodSwarm
data.stopGracePeriodSwarm ? BigInt(data.stopGracePeriodSwarm)
? BigInt(data.stopGracePeriodSwarm) : null,
: null,
}); });
} }
}, [form, form.reset, data]); }, [form, form.reset, data]);