chore(submit): remove custom error message for pubsub providers, doesn't seem needed anymore

This commit is contained in:
plebeius.eth
2024-01-26 12:52:06 +01:00
parent c9c67fd649
commit 4aed92f50e

View File

@@ -43,12 +43,7 @@ const useSubmitStore = create<SubmitState>((set) => ({
onChallengeVerification: alertChallengeVerificationFailed,
onError: (error: Error) => {
console.error(error);
// TODO: remove this explanation when pubsub providers uptime is fixed:
let errorMessage = error.message;
if (errorMessage === 'The challenge request has been published over the pubsub topic but no response was received') {
errorMessage +=
'. This means seedit web is currently offline, download seedit desktop which is fully peer-to-peer: https://github.com/plebbit/seedit/releases/latest';
}
alert(errorMessage);
},
};