From 727440e88b4451ca789d6570b9349f75e93add36 Mon Sep 17 00:00:00 2001 From: KyrneDev Date: Fri, 19 Feb 2021 12:57:50 -0800 Subject: [PATCH] Prettier --- js/src/forum/components/PostStreamScrubber.js | 11 +++++++++-- js/src/forum/states/PostStreamState.js | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/js/src/forum/components/PostStreamScrubber.js b/js/src/forum/components/PostStreamScrubber.js index 36ee71cef..6d68a048b 100644 --- a/js/src/forum/components/PostStreamScrubber.js +++ b/js/src/forum/components/PostStreamScrubber.js @@ -76,10 +76,17 @@ export default class PostStreamScrubber extends Component {
{showBackButton ? ( - + {icon('fas fa-chevron-left')} - ) : ''} + ) : ( + '' + )}
diff --git a/js/src/forum/states/PostStreamState.js b/js/src/forum/states/PostStreamState.js index c49d284a6..4fcf5626f 100644 --- a/js/src/forum/states/PostStreamState.js +++ b/js/src/forum/states/PostStreamState.js @@ -138,7 +138,7 @@ class PostStreamState { this.needsScroll = true; this.targetPost = { index }; this.animateScroll = !noAnimation; - this.previousIndex = (index === this.previousIndex) ? index : this.index; + this.previousIndex = index === this.previousIndex ? index : this.index; this.index = index; m.redraw();