mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-01-16 08:33:15 +05:30
#389: log captcha init errors
This commit is contained in:
parent
e972f5a795
commit
1bfcb17ae4
@ -4,6 +4,7 @@ import React from 'react';
|
|||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
|
|
||||||
import captcha from 'services/captcha';
|
import captcha from 'services/captcha';
|
||||||
|
import logger from 'services/logger';
|
||||||
import { skins, SKIN_DARK } from 'components/ui';
|
import { skins, SKIN_DARK } from 'components/ui';
|
||||||
import { ComponentLoader } from 'components/ui/loader';
|
import { ComponentLoader } from 'components/ui/loader';
|
||||||
|
|
||||||
@ -28,7 +29,7 @@ export default class Captcha extends FormInputComponent {
|
|||||||
captcha.render(this.el, {
|
captcha.render(this.el, {
|
||||||
skin: this.props.skin,
|
skin: this.props.skin,
|
||||||
onSetCode: this.setCode
|
onSetCode: this.setCode
|
||||||
}).then((captchaId) => this.captchaId = captchaId);
|
}).then((captchaId) => this.captchaId = captchaId, (error) => logger.error('Error rendering captcha', { error }));
|
||||||
}, this.props.delay);
|
}, this.props.delay);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user