Skip to content

Commit 72902bd

Browse files
committed
add missing const.
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
1 parent 9e7fbc9 commit 72902bd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/pages/settings/Troubleshoot/TroubleshootPage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ function TroubleshootPage() {
5555
const [shouldStoreLogs] = useOnyx(ONYXKEYS.SHOULD_STORE_LOGS, {canBeMissing: true});
5656
const [shouldMaskOnyxState = true] = useOnyx(ONYXKEYS.SHOULD_MASK_ONYX_STATE, {canBeMissing: true});
5757
const {resetOptions} = useOptionsList({shouldInitialize: false});
58-
const [tryNewDot] = useOnyx(ONYXKEYS.NVP_TRY_NEW_DOT, {canBeMissing: true});
58+
const [tryNewDot] = useOnyx(ONYXKEYS.NVP_TRY_NEW_DOT, {canBeMissing: true});
59+
const shouldOpenSurveyReasonPage = tryNewDot?.classicRedirect?.dismissed === false;
5960
const {setShouldResetSearchQuery} = useSearchContext();
6061
const exportOnyxState = useCallback(() => {
6162
ExportOnyxState.readFromOnyxDatabase().then((value: Record<string, unknown>) => {

0 commit comments

Comments
 (0)