Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoloureirop committed Nov 26, 2024
1 parent b80145d commit 74b9b88
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export const selectMobileMinimumVersions = createSelector(
selectRemoteFeatureFlags,
(remoteFeatureFlags) => {
const remoteFeatureFlag = remoteFeatureFlags.find(
(remoteFeatureFlag) =>
remoteFeatureFlag[FEATURE_FLAG_NAME]
(featureflag) =>
featureflag[FEATURE_FLAG_NAME]
);

return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FEATURE_FLAG_NAME, FeatureFlagType } from "./types";
import { FEATURE_FLAG_NAME, FeatureFlagType } from './types';

export const mockedMinimumAppVersion: FeatureFlagType = {
[FEATURE_FLAG_NAME]: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const FEATURE_FLAG_NAME = 'mobileMinimumVersions';

export type FeatureFlagType = {
export interface FeatureFlagType {
[FEATURE_FLAG_NAME]: {
appMinimumBuild: number;
appleMinimumOS: number;
Expand Down
6 changes: 3 additions & 3 deletions app/selectors/featureFlagController/mocks.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { FeatureFlags } from "@metamask/remote-feature-flag-controller";
import { mockedMinimumAppVersion } from "./minimumAppVersion/mocks";
import { FeatureFlags } from '@metamask/remote-feature-flag-controller';
import { mockedMinimumAppVersion } from './minimumAppVersion/mocks';

export const mockedState = {
engine: {
backgroundState: {
RemoteFeatureFlagController: {
remoteFeatureFlags: [
mockedMinimumAppVersion
] as FeatureFlags,
],
cacheTimestamp: 0,
},
},
Expand Down

0 comments on commit 74b9b88

Please sign in to comment.