Skip to content

Commit

Permalink
Remove bad comments and copy/pasted code
Browse files Browse the repository at this point in the history
  • Loading branch information
stitesExpensify committed Jan 19, 2024
1 parent a313c40 commit da884be
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
12 changes: 0 additions & 12 deletions src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2581,18 +2581,6 @@ function completeEngagementModal(text: string, choice: ValueOf<typeof CONST.INTR
},
];

// Update the timezone if it's been 5 minutes from the last time the user added a comment
if (DateUtils.canUpdateTimezone()) {
const timezone = DateUtils.getCurrentTimezone();
parameters.timezone = JSON.stringify(timezone);
optimisticData.push({
onyxMethod: Onyx.METHOD.MERGE,
key: ONYXKEYS.PERSONAL_DETAILS_LIST,
value: {[currentUserAccountID]: {timezone}},
});
DateUtils.setTimezoneUpdated();
}

API.write(commandName, parameters, {
optimisticData,
successData,
Expand Down
4 changes: 0 additions & 4 deletions src/libs/actions/Welcome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ Onyx.connect({
key: ONYXKEYS.NVP_INTRO_SELECTED,
initWithStoredValues: true,
callback: (value) => {
// If isFirstTimeNewExpensifyUser was true do not update it to false. We update it to false inside the Welcome.show logic
// More context here https://github.com/Expensify/App/pull/16962#discussion_r1167351359
hasSelectedChoice = !!value;

checkOnReady();
Expand All @@ -68,8 +66,6 @@ Onyx.connect({
key: ONYXKEYS.NVP_HAS_DISMISSED_IDLE_PANEL,
initWithStoredValues: true,
callback: (value) => {
// If isFirstTimeNewExpensifyUser was true do not update it to false. We update it to false inside the Welcome.show logic
// More context here https://github.com/Expensify/App/pull/16962#discussion_r1167351359
hasDismissedModal = value ?? false;

checkOnReady();
Expand Down

0 comments on commit da884be

Please sign in to comment.