Page MenuHomePhabricator

D14638.diff
No OneTemporary

D14638.diff

diff --git a/cashtab/src/components/Alias/Alias.js b/cashtab/src/components/Alias/Alias.js
--- a/cashtab/src/components/Alias/Alias.js
+++ b/cashtab/src/components/Alias/Alias.js
@@ -265,7 +265,7 @@
);
registerAliasNotification(result.explorerLink, aliasInput);
} catch (err) {
- handleAliasRegistrationError(err);
+ errorNotification(err, err.message, 'Registering Alias');
}
setIsValidAliasInput(true);
} else {
@@ -386,25 +386,6 @@
}));
};
- function handleAliasRegistrationError(errorObj) {
- // Set loading to false here as well, as balance may not change depending on where error occured in try loop
- passLoadingStatus(false);
- let message;
- if (
- errorObj.error &&
- errorObj.error.includes(
- 'too-long-mempool-chain, too many unconfirmed ancestors [limit: 50] (code 64)',
- )
- ) {
- message = `The address you are trying to register has too many unconfirmed ancestors (limit 50). Registration will be possible after a block confirmation. Try again in about 10 minutes.`;
- } else {
- message =
- errorObj.message || errorObj.error || JSON.stringify(errorObj);
- }
-
- errorNotification(errorObj, message, 'Registering Alias');
- }
-
return (
<>
<Modal

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 1, 09:08 (51 m, 31 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187165
Default Alt Text
D14638.diff (1 KB)

Event Timeline