We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ea2469 commit 4ef9528Copy full SHA for 4ef9528
1 file changed
src/hooks/useCancellationType.ts
@@ -5,7 +5,7 @@ import CONST from '@src/CONST';
5
import ONYXKEYS from '@src/ONYXKEYS';
6
7
function useCancellationType(): CancellationType | undefined {
8
- const [cancellationDetails] = useOnyx(ONYXKEYS.NVP_PRIVATE_CANCELLATION_DETAILS);
+ const [cancellationDetails] = useOnyx(ONYXKEYS.NVP_PRIVATE_CANCELLATION_DETAILS, {canBeMissing: true});
9
10
const [cancellationType, setCancellationType] = useState<CancellationType | undefined>();
11
0 commit comments