Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/i18n/i18n-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ type RootTranslation = {
*/
finish: string
/**
* C​o​n​f​i​g​u​r​e​ ​m​f​a
* C​o​n​f​i​g​u​r​e​ ​M​F​A
*/
mfa: string
}
Expand Down Expand Up @@ -2795,7 +2795,7 @@ export type TranslationFunctions = {
*/
finish: () => LocalizedString
/**
* Configure mfa
* Configure MFA
*/
mfa: () => LocalizedString
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,20 @@ export const UpdateInstanceModalForm = () => {
.catch(() => {
toaster.error(LL.common.messages.error());
});
} else {
// Device does not match used enrollment token.
toaster.error(
LL.common.messages.errorWithMessage({
message: 'Token is not valid for this device',
}),
);
setError(
'token',
{
message: localLL.form.fieldErrors.token.rejected(),
},
{ shouldFocus: true },
);
}
} else {
// Instance not found in client, use add instance.
Expand Down