Skip to content

Commit e3d71ab

Browse files
Update src/AdvancedVideo.tsx
Co-authored-by: kalifyaniv-cloudinary <[email protected]>
1 parent c2a60b0 commit e3d71ab

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/AdvancedVideo.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,7 @@ class AdvancedVideo extends Component<AdvancedVideoProps, AdvancedVideoState> {
144144
}
145145

146146
// Forward status updates to parent component
147-
if (this.props.onPlaybackStatusUpdate) {
148-
this.props.onPlaybackStatusUpdate(status);
149-
}
147+
this.props.onPlaybackStatusUpdate?.(status);
150148
};
151149

152150

0 commit comments

Comments
 (0)