Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update msg to be more friendly in farms page #1703

Closed
wants to merge 7 commits into from
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/playground/src/dashboard/components/user_farms.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ import { gridProxyClient } from "@/clients";
import CardDetails from "@/components/node_details_cards/card_details.vue";
import { useGrid, useProfileManager } from "@/stores";
import { createCustomToast, ToastType } from "@/utils/custom_toast";
import { normalizeError } from "@/utils/helpers";
import {
generateNodeSummary,
generateReceipt,
Expand Down Expand Up @@ -214,7 +215,10 @@ export default {
farmsCount.value = count || filteredFarms.length;
} catch (error) {
console.log(error);
createCustomToast("Failed to get user farms!", ToastType.danger);
createCustomToast(
normalizeError(error as Error | string | undefined, "Failed to get farms. Please check your connection."),
ToastType.danger,
);
} finally {
loading.value = false;
}
Expand Down
Loading