Skip to content

Commit

Permalink
apply suggestion from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
CrisTofani committed Nov 5, 2024
1 parent e03e098 commit 3194010
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ts/sagas/startup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ export function* initializeApplicationSaga(
// Since the backend.json is done in parallel with the startup saga,
// we need to synchronize the two tasks, to be sure to have loaded the remote FF
// before using them.
const backendStatus = yield* select(remoteConfigSelector);
if (O.isNone(backendStatus)) {
const remoteConfig = yield* select(remoteConfigSelector);
if (O.isNone(remoteConfig)) {
yield* take(backendStatusLoadSuccess);
}

Expand Down
2 changes: 1 addition & 1 deletion ts/screens/modal/SystemOffModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import I18n from "../../i18n";
import { backendInfoMessageSelector } from "../../store/reducers/backendStatus/backendInfo";
import { getFullLocale } from "../../utils/locale";
const SystemOffModal = () => {
const backendInfoMessage = useSelector(backendInfoMessageSelector);
const backendInfoMessage = useSelector(backendInfoMessageSelector, _.isEqual);
const locale = getFullLocale();

const subtitle = React.useMemo(() => {
Expand Down

0 comments on commit 3194010

Please sign in to comment.