-
Notifications
You must be signed in to change notification settings - Fork 108
fix: billing dynamic correction payouts #1276
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
base: main
Are you sure you want to change the base?
Changes from 4 commits
7abe1ff
d7ed3b5
2d8db10
0ad364f
5a9360f
3036057
666796c
59bf445
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -248,6 +248,12 @@ let make = ( | |
|
|
||
| /// SCREEN #3 - ADDRESS COLLECION (OPTIONAL) | ||
| | AddressForm(addressFields) => { | ||
| let incompleteAddressFieldsCount = | ||
| addressFields | ||
| ->Array.filter(addressField => | ||
| addressField.value == None && addressField.fieldType != FullName(LastName) | ||
| ) | ||
| ->Array.length | ||
| let onSaveHandler = () => { | ||
| let (fieldValidity, isAddressValid) = addressFields->Array.reduce((Dict.make(), true), ( | ||
| (fieldValidity, isAddressValid), | ||
|
|
@@ -269,10 +275,14 @@ let make = ( | |
| <> | ||
| {renderHeader(localeString.billingDetailsText, true)} | ||
| <div className=contentSubHeaderClasses> | ||
| {React.string(localeString.formSubheaderBillingDetailsText)} | ||
| {incompleteAddressFieldsCount == 0 | ||
|
||
| ? React.string(localeString.formNoFieldsToEnterText) | ||
| : React.string(localeString.formSubheaderBillingDetailsText)} | ||
| </div> | ||
| <div className="mt-2.5"> | ||
| {addressFields->renderAddressForm->React.array} | ||
| {incompleteAddressFieldsCount == 0 | ||
| ? React.null | ||
| : addressFields->renderAddressForm->React.array} | ||
| {renderSaveButton(_ => onSaveHandler())} | ||
| </div> | ||
| </> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.