Skip to content

Commit

Permalink
Fix typecheck error on main
Browse files Browse the repository at this point in the history
  • Loading branch information
BartoszGrajdek committed Nov 13, 2023
1 parent 7bc47b7 commit d5daa59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libs/actions/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';
import * as OnyxTypes from '@src/types/onyx';
import {SelectedTimezone} from '@src/types/onyx/PersonalDetails';
import type {OnyxData} from '@src/types/onyx/Request';
import * as Policy from './Policy';
import * as Session from './Session';
Expand Down Expand Up @@ -442,7 +443,7 @@ function openProfile(personalDetails: OnyxTypes.PersonalDetails) {
if (oldTimezoneData?.automatic ?? true) {
newTimezoneData = {
automatic: true,
selected: Intl.DateTimeFormat().resolvedOptions().timeZone,
selected: Intl.DateTimeFormat().resolvedOptions().timeZone as SelectedTimezone,
};
}

Expand Down

0 comments on commit d5daa59

Please sign in to comment.