refactor: remove single-use notification constant

- Replace constant usage with direct message string in ImportDerivedAccountView.vue
- Clean up import statement to remove unused import
- Remove unused constant from notifications.ts
This commit is contained in:
Jose Olarte III
2025-09-01 16:02:48 +08:00
parent 96e4d3c394
commit c9082fa57b
2 changed files with 1 additions and 10 deletions

View File

@@ -91,7 +91,6 @@ import { createNotifyHelpers, TIMEOUTS, NotifyFunction } from "@/utils/notify";
import {
NOTIFY_ACCOUNT_DERIVATION_SUCCESS,
NOTIFY_ACCOUNT_DERIVATION_ERROR,
NOTIFY_DUPLICATE_DERIVED_ACCOUNT,
} from "@/constants/notifications";
@Component({
@@ -176,7 +175,7 @@ export default class ImportAccountView extends Vue {
const isDuplicate = await this.checkForDuplicateAccount(newId.did);
if (isDuplicate) {
this.notify.warning(
NOTIFY_DUPLICATE_DERIVED_ACCOUNT.message,
"This derived account already exists. Please try a different derivation path.",
TIMEOUTS.LONG,
);
return;