Skip to content

Commit

Permalink
resolve _isFinite removal conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Feb 18, 2025
1 parent 2109e23 commit 88a04f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 349 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import bbox from "@turf/bbox";
import { featureCollection, point } from "@turf/helpers";
import _isEqual from "lodash/isEqual";
import _isFinite from "lodash/isFinite";
import _map from "lodash/map";
import _pick from "lodash/pick";
import _sum from "lodash/sum";
Expand Down Expand Up @@ -93,7 +92,7 @@ export default class NearbyTasksWidget extends Component {

initializeWebsocketSubscription(prevProps = {}) {
const challengeId = this.props.task?.parent?.id;
if (_isFinite(challengeId) && challengeId !== prevProps.task?.parent?.id) {
if (Number.isFinite(challengeId) && challengeId !== prevProps.task?.parent?.id) {
this.props.subscribeToChallengeTaskMessages(challengeId);
}
}
Expand Down Expand Up @@ -197,7 +196,7 @@ export default class NearbyTasksWidget extends Component {
componentWillUnmount() {
this.props.resetSelectedTasks();
const challengeId = this.props.task?.parent?.id;
if (_isFinite(challengeId)) {
if (Number.isFinite(challengeId)) {
this.props.unsubscribeFromChallengeTaskMessages(challengeId);
}
}
Expand Down Expand Up @@ -379,7 +378,7 @@ const BuildBundle = (props) => {
bundleEditsDisabled,
} = props;

if (virtualChallenge || _isFinite(virtualChallengeId)) {
if (virtualChallenge || Number.isFinite(virtualChallengeId)) {
return (
<div className="mr-text-base">
<FormattedMessage {...messages.noVirtualChallenges} />
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 88a04f2

Please sign in to comment.