Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
akellbl4 authored and Paul Mineev committed Jul 11, 2022
1 parent d6013b1 commit fddf1e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions frontend/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
public
coverage
package.json
package-lock.json
13 changes: 6 additions & 7 deletions frontend/app/components/comment-form/comment-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { MarkdownToolbar } from './markdown-toolbar';
import { TextExpander } from './text-expander';
import { updatePersistedComments, getPersistedComment, removePersistedComment } from './comment-form.persist';


export type Props = {
id: string;
user: User | null;
Expand Down Expand Up @@ -115,7 +114,7 @@ export class CommentForm extends Component<Props, State> {
const { value } = e.target as HTMLInputElement;
const text = value.substr(0, StaticStore.config.max_comment_size);

updatePersistedComments(this.props.id, value)
updatePersistedComments(this.props.id, value);

if (this.state.errorLock) {
this.setState({
Expand Down Expand Up @@ -166,7 +165,7 @@ export class CommentForm extends Component<Props, State> {
return;
}

removePersistedComment(this.props.id)
removePersistedComment(this.props.id);
this.setState({ isDisabled: false, preview: null, text: '' });
};

Expand Down Expand Up @@ -322,8 +321,8 @@ export class CommentForm extends Component<Props, State> {
continue;
}

this.setState({ text: replaceSelection(this.state.text, selection, uploadPlaceholder) }, () => {
updatePersistedComments(this.props.id, this.state.text);
this.setState({ text: replaceSelection(this.state.text, selection, uploadPlaceholder) }, () => {
updatePersistedComments(this.props.id, this.state.text);
});

!isFirst && (await sleep(uploadDelay));
Expand All @@ -345,8 +344,8 @@ export class CommentForm extends Component<Props, State> {
markdownString
),
},
() => {
updatePersistedComments(this.props.id, this.state.text);
() => {
updatePersistedComments(this.props.id, this.state.text);
}
);
/** sleeping awhile so textarea catch state change and its selection */
Expand Down

0 comments on commit fddf1e2

Please sign in to comment.