The Open Source DocuSign Alternative.
TypeScript digital-signaturedocument-signingdocusign-alternativee-signatureesignesignaturenext-authnextjsopen-sourcepades-standardpdfpdf-signpdf-signaturepostgresqlprismaself-hostedsigningtypescript
chore: let code breath
mikezzb43b1a1441585
diff --git a/packages/ui/primitives/stepper.tsx b/packages/ui/primitives/stepper.tsxindex 795304e8c..35086ff17 100644--- a/packages/ui/primitives/stepper.tsx+++ b/packages/ui/primitives/stepper.tsx@@ -56,7 +56,9 @@ export const Stepper: FC<StepperProps> = ({}, [currentStep, onStepChanged]);// Empty stepper- if (totalSteps === 0) return null;+ if (totalSteps === 0) {+ return null;+ }const currentChild = React.Children.toArray(children)[currentStep - 1];@@ -76,6 +78,8 @@ export const Stepper: FC<StepperProps> = ({/** Hook for children to use the step context */export const useStep = (): StepContextType => {const context = useContext(StepContext);- if (!context) throw new Error('useStep must be used within a Stepper');+ if (!context) {+ throw new Error('useStep must be used within a Stepper');+ }return context;};