Merged in fix/STAY-2-GLA-cancelled (pull request #3109)
Fix/STAY-2 GLA cancelled * fix: show toast on cancelling GLA flow * fix: show the ancillary GLA errors as inline alerts Approved-by: Bianca Widstam Approved-by: Erik Tiekstra
This commit is contained in:
@@ -69,3 +69,9 @@ export function hasModifiableRate(cancellationRule: string | null): boolean {
|
||||
cancellationRule === CancellationRuleEnum.Changeable
|
||||
)
|
||||
}
|
||||
|
||||
export function isAncillaryError(searchParams: URLSearchParams): boolean {
|
||||
const errorCode = searchParams.get("errorCode")
|
||||
const ancillary = searchParams.get("ancillary")
|
||||
return Boolean((errorCode && ancillary) || errorCode === "AncillaryFailed")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user