Skip to content

Commit

Permalink
fix: Do not translate Exception error message
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Jan 22, 2024
1 parent f42181c commit fc72757
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Vue from 'vue'
import PasswordDialogVue from './components/PasswordDialog.vue'
import { DIALOG_ID, MODAL_CLASS } from './globals'
import { t } from './utils/l10n'

import type { ComponentInstance } from 'vue'

Expand Down Expand Up @@ -33,7 +32,7 @@ export const isPasswordConfirmationRequired = (): boolean => {
export const confirmPassword = (): Promise<void> => {
const isDialogMounted = Boolean(document.getElementById(DIALOG_ID))
if (isDialogMounted) {
return Promise.reject(new Error(t('Password confirmation dialog already mounted')))
return Promise.reject(new Error('Password confirmation dialog already mounted'))
}

if (!isPasswordConfirmationRequired()) {
Expand Down

0 comments on commit fc72757

Please sign in to comment.