Skip to content

Commit

Permalink
dead nullish operators
Browse files Browse the repository at this point in the history
  • Loading branch information
gsfk committed Jan 11, 2024
1 parent b33fd24 commit 753dd12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/features/beacon/beaconConfig.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { printAPIError } from '@/utils/error.util';
export const getBeaconConfig = createAsyncThunk<BeaconConfigResponse, void, { state: RootState; rejectValue: string }>(
'beaconConfig/getBeaconConfig',
(_, { getState, rejectWithValue }) => {
const beaconInfoEndpoint = getState()?.config?.beaconUrl + '/overview';
const beaconInfoEndpoint = getState().config.beaconUrl + '/overview';
return axios
.get(beaconInfoEndpoint)
.then((res) => res.data)
Expand Down
2 changes: 1 addition & 1 deletion src/js/features/beacon/beaconQuery.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const makeBeaconQuery = createAsyncThunk<
BeaconQueryPayload,
{ state: RootState; rejectValue: string }
>('beaconQuery/makeBeaconQuery', async (payload, { getState, rejectWithValue }) => {
const beaconIndividualsEndpoint = getState()?.config?.beaconUrl + '/individuals';
const beaconIndividualsEndpoint = getState().config.beaconUrl + '/individuals';
return axios
.post(beaconIndividualsEndpoint, payload)
.then((res) => res.data)
Expand Down

0 comments on commit 753dd12

Please sign in to comment.