Skip to content

Commit

Permalink
missing observable
Browse files Browse the repository at this point in the history
  • Loading branch information
notbakaneko committed Oct 9, 2024
1 parent a681267 commit d478214
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/js/beatmap-discussions/refresh.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class Refresh extends React.PureComponent<Props> {
@observable private lastUpdateResponse: Date | null = null;
private timeoutCheckNew?: number;
@observable private xhrCheckNew?: JQuery.jqXHR<CheckUpdatesResponseJson>;
private xhrGetUpdates?: JQuery.jqXHR<UpdateResponseJson>;
@observable private xhrGetUpdates?: JQuery.jqXHR<UpdateResponseJson>;

private get canRefresh() {
return this.xhrGetUpdates == null && this.hasUpdates;
Expand Down Expand Up @@ -74,7 +74,7 @@ export class Refresh extends React.PureComponent<Props> {
title={this.title}
>
<i className='fas fa-rotate' />
{this.xhrCheckNew != null || this.xhrGetUpdates ? (
{this.xhrCheckNew != null || this.xhrGetUpdates != null ? (
<Spinner />
) : (
<span className='fas fa-sync-alt' />
Expand Down

0 comments on commit d478214

Please sign in to comment.