1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-20 14:54:15 +01:00

(bug) do not crash if stripe does not answer

This commit is contained in:
Sylvain 2023-03-02 11:53:09 +01:00
parent 33d8c2951e
commit 66a55b62d9

View File

@ -113,7 +113,7 @@ const StripeKeysForm: React.FC<StripeKeysFormProps> = ({ onValidKeys, onInvalidK
}, reason => {
if (!mounted.current) return;
if (reason.response.status === 401) {
if (reason.response?.status === 401) {
setSecretKeyAddOn(<i className="fa fa-times" />);
setSecretKeyAddOnClassName('key-invalid');
}