[MM-51905] Fix: Successful trial request shows error modal (#22800)

* License public key to test env for mono-repo

* Fix error modal showing on a successful trial request
Этот коммит содержится в:
Nick Misasi
2023-04-05 10:53:07 -04:00
коммит произвёл GitHub
родитель b3a4aadee8
Коммит 6fce376e7b
4 изменённых файлов: 18 добавлений и 18 удалений

Просмотреть файл

@@ -129,7 +129,7 @@ function StartTrialFormModal(props: Props): JSX.Element | null {
company_country: country,
company_size: orgSize,
};
const error = await dispatch(requestTrialLicense(trialRequestBody, props.page || 'license'));
const {error, data} = await dispatch(requestTrialLicense(trialRequestBody, props.page || 'license'));
if (error) {
setLoadStatus(TrialLoadStatus.Failed);
let title;
@@ -137,7 +137,7 @@ function StartTrialFormModal(props: Props): JSX.Element | null {
let buttonText;
let onTryAgain = handleErrorModalTryAgain;
if (error?.data.status === 422) {
if (data.status === 422) {
title = (<></>);
subtitle = (
<FormattedMessage