forked from trent_larson/crowd-funder-for-time-pwa
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user