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:
parent
33d8c2951e
commit
66a55b62d9
@ -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');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user