Skip to content

Commit 1845ef5

Browse files
Fix lint
1 parent 8e9c7c5 commit 1845ef5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/components/TaxPicker.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,17 @@ type TaxPickerProps = {
4545
function TaxPicker({selectedTaxRate = '', policyID, transactionID, onSubmit, action, iouType, onDismiss = Navigation.goBack, addBottomSafeAreaPadding}: TaxPickerProps) {
4646
const {translate, localeCompare} = useLocalize();
4747
const [searchValue, setSearchValue] = useState('');
48-
const [splitDraftTransaction] = useOnyx(`${ONYXKEYS.COLLECTION.SPLIT_TRANSACTION_DRAFT}${transactionID}`);
48+
const [splitDraftTransaction] = useOnyx(`${ONYXKEYS.COLLECTION.SPLIT_TRANSACTION_DRAFT}${transactionID}`, {canBeMissing: true});
4949

50-
const [policy] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY}${policyID}`);
50+
const [policy] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY}${policyID}`, {canBeMissing: true});
5151
const [transaction] = useOnyx(
5252
(() => {
5353
if (shouldUseTransactionDraft(action)) {
5454
return `${ONYXKEYS.COLLECTION.TRANSACTION_DRAFT}${transactionID}` as `${typeof ONYXKEYS.COLLECTION.TRANSACTION}${string}`;
5555
}
5656
return `${ONYXKEYS.COLLECTION.TRANSACTION}${transactionID}`;
5757
})(),
58+
{canBeMissing: true},
5859
);
5960

6061
const isEditing = action === CONST.IOU.ACTION.EDIT;

0 commit comments

Comments
 (0)