Skip to content

Commit

Permalink
Made div readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinT committed Feb 27, 2020
1 parent 71c3dd8 commit 69c42a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/components/buttons/HotkeyButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class HotkeyButton extends React.PureComponent<HotkeyButtonProps, HotkeyB
this.div = React.createRef()
}

private div: React.RefObject<HTMLDivElement>
private readonly div: React.RefObject<HTMLDivElement>

componentDidUpdate (prevProps: HotkeyButtonProps) {
const { hotkey } = this.props
Expand Down

0 comments on commit 69c42a1

Please sign in to comment.