Merge branch 'dev' into 'staging'
проверка ошибки промокода на пустую строку See merge request frontend/squiz!298
This commit is contained in:
commit
669a731fbe
@ -19,7 +19,7 @@ export async function activatePromocode(promocode: string) {
|
||||
return response.greetings;
|
||||
} catch (nativeError) {
|
||||
const [error] = parseAxiosError(nativeError);
|
||||
|
||||
throw new Error(error);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -200,7 +200,7 @@ function TariffPage() {
|
||||
setDiscounts(discounts);
|
||||
}
|
||||
})
|
||||
.catch(enqueueSnackbar);
|
||||
.catch((error) => {if (error.message !== "" && typeof(error.message)==="string") enqueueSnackbar(error.message)})
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user