Skip to content

Commit 805c0f1

Browse files
committed
chore(66877): fix canBeMissing warnings for nvp_introSelected
1 parent 9e28913 commit 805c0f1

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/TestDrive/Modal/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import AdminTestDriveModal from './AdminTestDriveModal';
66
import EmployeeTestDriveModal from './EmployeeTestDriveModal';
77

88
function TestDriveModal() {
9-
const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {canBeMissing: false});
9+
const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {canBeMissing: true});
1010
const isAdminTester = introSelected?.choice === CONST.ONBOARDING_CHOICES.MANAGE_TEAM || introSelected?.choice === CONST.ONBOARDING_CHOICES.TRACK_WORKSPACE;
1111

1212
return isAdminTester ? <AdminTestDriveModal /> : <EmployeeTestDriveModal />;

src/components/TestDrive/TestDriveDemo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function TestDriveDemo() {
2323
const styles = useThemeStyles();
2424
const [onboarding] = useOnyx(ONYXKEYS.NVP_ONBOARDING, {canBeMissing: false});
2525
const [onboardingReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${onboarding?.chatReportID}`, {canBeMissing: true});
26-
const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {canBeMissing: false});
26+
const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {canBeMissing: true});
2727
const viewTourReportID = introSelected?.viewTour;
2828
const [viewTourReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${viewTourReportID}`, {canBeMissing: true});
2929
const {testDrive} = useOnboardingMessages();

src/pages/iou/request/step/IOURequestStepConfirmation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ function IOURequestStepConfirmation({
189189
const [isConfirmed, setIsConfirmed] = useState(false);
190190
const [isConfirming, setIsConfirming] = useState(false);
191191

192-
const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {canBeMissing: false});
192+
const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED, {canBeMissing: true});
193193
const viewTourReportID = introSelected?.viewTour;
194194
const [viewTourReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${viewTourReportID}`, {canBeMissing: true});
195195

0 commit comments

Comments
 (0)