Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed Oct 1, 2023
1 parent 21b5e55 commit 236a9ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions resources/js/Pages/Webauthn/WebauthnKeys.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ onMounted(() => {
const _errorMessage = (name, message) => {
switch (name) {
case 'InvalidStateError':
return trans('This key is already registered. It’s not necessary to register it again.');
case 'NotAllowedError':
return trans('The operation either timed out or was not allowed.');
default:
return message;
case 'InvalidStateError':
return trans('This key is already registered. It’s not necessary to register it again.');
case 'NotAllowedError':
return trans('The operation either timed out or was not allowed.');
default:
return message;
}
};
Expand Down
12 changes: 6 additions & 6 deletions resources/js/Pages/Webauthn/WebauthnLogin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ onMounted(() => {
const _errorMessage = (name, message) => {
switch (name) {
case 'InvalidStateError':
return trans('Unexpected error on login.');
case 'NotAllowedError':
return trans('The operation either timed out or was not allowed.');
default:
return message;
case 'InvalidStateError':
return trans('Unexpected error on login.');
case 'NotAllowedError':
return trans('The operation either timed out or was not allowed.');
default:
return message;
}
};
Expand Down

0 comments on commit 236a9ba

Please sign in to comment.