fix condition in withStartingIndicator
@@ -23,21 +23,21 @@ export const StartingContent: FC<StartingContentProps> = ({ status, isUnexpected
<div className="text-center m-3">
<div className="m-4">
<h2>Starting up...</h2>
- {/* {status?.max! > 0 ? (
+ {status && status.max > 0 ? (
<div>
<p>
Replaying WAL ({status?.current}/{status?.max})
</p>
<Progress
animated
- value={status?.current! - status?.min! + 1}
- min={status?.min}
- max={status?.max! - status?.min! + 1}
- color={status?.max === status?.current ? 'success' : undefined}
+ value={status.current - status.min + 1}
+ min={status.min}
+ max={status.max - status.min + 1}
+ color={status.max === status.current ? 'success' : undefined}
style={{ width: '10%', margin: 'auto' }}
/>
</div>
- ) : null} */}
+ ) : null}
</div>
</div>
);
