diff options
Diffstat (limited to 'packages/instant/src/components/timed_progress_bar.tsx')
-rw-r--r-- | packages/instant/src/components/timed_progress_bar.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/instant/src/components/timed_progress_bar.tsx b/packages/instant/src/components/timed_progress_bar.tsx index a4bb2eabd..16781b9d7 100644 --- a/packages/instant/src/components/timed_progress_bar.tsx +++ b/packages/instant/src/components/timed_progress_bar.tsx @@ -8,7 +8,7 @@ import { Container } from './ui/container'; export interface TimedProgressBarProps { expectedTimeMs: number; - ended: boolean; + hasEnded: boolean; } interface TimedProgressBarState { @@ -39,7 +39,7 @@ export class TimedProgressBar extends React.Component<TimedProgressBarProps, Tim } public componentDidUpdate(prevProps: TimedProgressBarProps, prevState: TimedProgressBarState): void { - if (prevProps.ended === false && this.props.ended === true) { + if (prevProps.hasEnded === false && this.props.hasEnded === true) { // Show nice animation going to end // barRef current should always exist, but checking for typesafety if (this._barRef.current) { @@ -53,7 +53,7 @@ export class TimedProgressBar extends React.Component<TimedProgressBarProps, Tim return; } - if (prevProps.expectedTimeMs !== this.props.expectedTimeMs || prevProps.ended !== this.props.ended) { + if (prevProps.expectedTimeMs !== this.props.expectedTimeMs || prevProps.hasEnded !== this.props.hasEnded) { // things changed, get fresh state this.setState(beginningState(this.props)); } |