Skip to content

Commit

Permalink
fix: rename functions
Browse files Browse the repository at this point in the history
Signed-off-by: dominictb <tb-dominic@outlook.com>
  • Loading branch information
dominictb committed Jun 14, 2024
1 parent c62c3bc commit 7c9396e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
10 changes: 1 addition & 9 deletions src/pages/iou/request/step/IOURequestStepTaxRatePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ function IOURequestStepTaxRatePage({

if (isEditing) {
const newTaxCode = taxes.code;
if (newTaxCode === TransactionUtils.getTaxCode(currentTransaction)) {
navigateBack();
return;
}
IOU.updateMoneyRequestTaxRate({
transactionID: currentTransaction?.transactionID ?? '-1',
optimisticReportActionID: report?.reportID ?? '-1',
Expand All @@ -113,10 +109,6 @@ function IOURequestStepTaxRatePage({
navigateBack();
};

const dismiss = () => {
navigateBack();
};

return (
<StepScreenWrapper
headerTitle={translate('iou.taxRate')}
Expand All @@ -131,7 +123,7 @@ function IOURequestStepTaxRatePage({
onSubmit={updateTaxRates}
action={action}
iouType={iouType}
onDismiss={dismiss}
onDismiss={navigateBack}
/>
</StepScreenWrapper>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function WorkspaceTaxesSettingsForeignCurrency({
Navigation.goBack(ROUTES.WORKSPACE_TAXES_SETTINGS.getRoute(policyID));
};

const onDismiss = () => {
const dismiss = () => {
Navigation.goBack(ROUTES.WORKSPACE_TAXES_SETTINGS.getRoute(policyID));
};

Expand All @@ -64,7 +64,7 @@ function WorkspaceTaxesSettingsForeignCurrency({
policyID={policyID}
insets={insets}
onSubmit={submit}
onDismiss={onDismiss}
onDismiss={dismiss}
/>
</View>
</>
Expand Down

0 comments on commit 7c9396e

Please sign in to comment.