Skip to content

Commit

Permalink
fix: few smaller fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMuzyk committed Oct 11, 2024
1 parent a4608b5 commit 1ccb470
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/AttachmentPicker/index.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ function AttachmentPicker({

return Promise.all(filesToProcess);
},
[validateAndCompleteAttachmentSelection, showImageCorruptionAlert, shouldValidateImage, showGeneralAlert],
[totalFilesSizeLimitInMB, totalFilesSizeLimitInBytes, showFilesTooBigAlert, shouldValidateImage, validateAndCompleteAttachmentSelection, showGeneralAlert, showImageCorruptionAlert],
);

/**
Expand Down
2 changes: 1 addition & 1 deletion src/libs/ValidationUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import StringUtils from './StringUtils';
function validateCardNumber(value: string): boolean {
let sum = 0;
for (let i = 0; i < value.length; i++) {
let intVal = parseInt(value.substr(i, 1), 10);
let intVal = parseInt(value.slice(i, i + 1), 10);
if (i % 2 === 0) {
intVal *= 2;
if (intVal > 9) {
Expand Down
2 changes: 2 additions & 0 deletions src/libs/actions/BankAccounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,8 @@ function validatePlaidSelection(values: FormOnyxValues<AccountFormValues>): Form
}

function getCorpayBankAccountFields(country: string, currency: string) {
// TODO - Use parameters when API is ready
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const parameters: GetCorpayBankAccountFieldsParams = {
countryISO: country,
currency,
Expand Down

0 comments on commit 1ccb470

Please sign in to comment.