Skip to content

Commit 4ef9528

Browse files
committed
Use canBeMissing: true
1 parent 0ea2469 commit 4ef9528

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hooks/useCancellationType.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import CONST from '@src/CONST';
55
import ONYXKEYS from '@src/ONYXKEYS';
66

77
function useCancellationType(): CancellationType | undefined {
8-
const [cancellationDetails] = useOnyx(ONYXKEYS.NVP_PRIVATE_CANCELLATION_DETAILS);
8+
const [cancellationDetails] = useOnyx(ONYXKEYS.NVP_PRIVATE_CANCELLATION_DETAILS, {canBeMissing: true});
99

1010
const [cancellationType, setCancellationType] = useState<CancellationType | undefined>();
1111

0 commit comments

Comments
 (0)