Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defaultValue: local currency should default to ILS #142

Merged
merged 2 commits into from Jul 14, 2022

Conversation

TuvalSimha
Copy link
Collaborator

No description provided.

@TuvalSimha TuvalSimha mentioned this pull request Jul 12, 2022
20 tasks
@@ -71,7 +72,7 @@ export const InsertLedgerRecordFields = ({ ledgerRecord, control }: Props) => {
<Controller
name="localCurrencyAmount.currency"
control={control}
defaultValue={ledgerRecord.localCurrencyAmount?.currency}
defaultValue={Currency.Ils ?? ledgerRecord.localCurrencyAmount?.currency}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will always result in ILS, since the left side is never null/undefined, so the right part (in this impl) is never used.

@gilgardosh gilgardosh self-requested a review July 14, 2022 07:57
@gilgardosh gilgardosh merged commit c4985c5 into master Jul 14, 2022
@gilgardosh gilgardosh deleted the tuval/drop_down_currency branch July 14, 2022 08:00
gilgardosh pushed a commit that referenced this pull request Feb 26, 2024
Update dependency lint-staged to v11.1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants