[accelerator] fix message when trying to accelerate

This commit is contained in:
nymkappa
2023-11-19 17:16:05 +09:00
parent 28733c1e97
commit 0e3b3a0e00
2 changed files with 6 additions and 2 deletions

View File

@@ -189,7 +189,11 @@ export class AcceleratePreviewComponent implements OnInit, OnDestroy, OnChanges
this.estimateSubscription.unsubscribe();
},
error: (response) => {
this.error = response.error;
if (response.status === 403 && response.error === 'not_available') {
this.error = 'waitlisted';
} else {
this.error = response.error;
}
this.scrollToPreviewWithTimeout('mempoolError', 'center');
}
});