-
Notifications
You must be signed in to change notification settings - Fork 1
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
Change ppp iframe link,display error message in surge pages #445
Conversation
urlParams: { countryId: item.country_from?.id }, | ||
}), | ||
(item) => { | ||
if (item.country_from?.id) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use isDefined or isNotDefined from fujs
if (isDefined(item.country_from?.record_type === 3)) { | ||
return { | ||
to: undefined, | ||
}; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a NOTE here.
// NOTE: we don't have the correct mapping for region
@@ -8,6 +8,7 @@ | |||
"personnelTableType": "Type", | |||
"personnelTableDeployedTo": "Deploying To", | |||
"personnelTableDeployedParty": "Deploying Party", | |||
"deployedPersonnelViewAll": "View All Deployed Personnel" | |||
"deployedPersonnelViewAll": "View All Deployed Personnel", | |||
"emergencySurgePartyNotFound": "sorry, this party has no one matching country to be shown" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove this
(item) => { | ||
if (isDefined(item.country_from?.record_type === 3)) { | ||
return { | ||
to: undefined, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a note
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use a constant to denote region type.
For example
export const TYPE_IMMINENT = 0 satisfies TypeOfDrefEnum;
Addresses:
Changes
This PR doesn't introduce:
console.log
meant for debugging