Skip to content

Commit

Permalink
Fix: remove any type usage
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedAziz-Hammami committed Feb 5, 2025
1 parent 19c3e93 commit d29dcd9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend/src/components/Mining/StepperPanels/MinePanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,11 @@ onMounted(async () => {
try {
await $leadminerStore.fetchInbox();
} catch (error: any) {
if (error?.statusCode === 502 || error?.statusCode === 503) {
} catch (error: unknown) {
if (
error instanceof FetchError &&
(error.statusCode === 502 || error.statusCode === 503)
) {
$stepper.prev();
throw error;
} else {
Expand Down

0 comments on commit d29dcd9

Please sign in to comment.