diff --git a/frontend/src/components/RobotInfo/index.tsx b/frontend/src/components/RobotInfo/index.tsx index 8d2d2f9e9..0b22e77f3 100644 --- a/frontend/src/components/RobotInfo/index.tsx +++ b/frontend/src/components/RobotInfo/index.tsx @@ -92,11 +92,13 @@ const RobotInfo: React.FC = ({ coordinator, onClose }: Props) => { if (robot != null && slot?.token != null && robot.encPrivKey != null) { void signCleartextMessage(rewardInvoice, robot.encPrivKey, slot?.token).then( (signedInvoice) => { + console.log('Signed message:', signedInvoice); void coordinator.fetchReward(signedInvoice, garage, slot?.token).then((data) => { + console.log(data); setBadInvoice(data.bad_invoice ?? ''); setShowRewardsSpinner(false); setWithdrawn(data.successful_withdrawal); - setOpenClaimRewards(!(data.successful_withdrawal !== undefined)); + setOpenClaimRewards(!data.successful_withdrawal); }); }, ); @@ -307,6 +309,7 @@ const RobotInfo: React.FC = ({ coordinator, onClose }: Props) => {