From 15c72de1ef04ed6b0ec2826d46c04bdee936bf1b Mon Sep 17 00:00:00 2001 From: "@wwwjim" Date: Thu, 17 Sep 2020 18:18:42 -0700 Subject: [PATCH] here we go --- components/sidebars/SidebarFilecoinArchive.js | 12 +++++++----- node_common/managers/viewer.js | 2 -- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/sidebars/SidebarFilecoinArchive.js b/components/sidebars/SidebarFilecoinArchive.js index 76e80722..b2d6f48c 100644 --- a/components/sidebars/SidebarFilecoinArchive.js +++ b/components/sidebars/SidebarFilecoinArchive.js @@ -9,14 +9,14 @@ import { css } from "@emotion/react"; import { dispatchCustomEvent } from "~/common/custom-events"; export default class SidebarFilecoinArchive extends React.Component { - state = { response: "" }; + state = { response: null }; async componentDidMount() {} _handleMakeDeal = async () => { const response = await Actions.archive(); - this.setState({ response }); + alert("A new Filecoin deal is being processed."); }; _handleSubmit = async (e) => { @@ -63,9 +63,11 @@ export default class SidebarFilecoinArchive extends React.Component { Make storage deal -
- {JSON.stringify(this.state.response, null, 2)} -
+ {this.state.response ? ( +
+ {JSON.stringify(this.state.response, null, 2)} +
+ ) : null} ); } diff --git a/node_common/managers/viewer.js b/node_common/managers/viewer.js index ec9ab922..272b7e22 100644 --- a/node_common/managers/viewer.js +++ b/node_common/managers/viewer.js @@ -152,8 +152,6 @@ export const getTextileById = async ({ id }) => { errors.push({ decorator: "STATUS", message: e.message, code: e.code }); } - console.log(jobs); - return { type: "VIEWER_FILECOIN", settings: {