Fix unnecessary object structuring

This commit is contained in:
Dane Everitt 2020-10-22 21:33:06 -07:00
parent 7ed3c25d61
commit 23872b844a
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 4 additions and 4 deletions

View file

@ -27,7 +27,7 @@ export default ({ ...props }: RequiredModalProps) => {
.catch(error => {
console.error(error);
clearAndAddHttpError({ error: error, key: 'account:two-factor' });
clearAndAddHttpError({ error, key: 'account:two-factor' });
setSubmitting(false);
});
};